[Resolvido] javascript para jquery
Iae pessoal !!
Estou com um problema aki!!
Javascript:
function pegarValor( el ) {
if( el.value == '' ){
document.getElementById("formulario").style.backgroundColor = '#f9f9f9';
document.getElementById("body").style.color = '#444444';
}
else if(el.value == '428' || el.value == '429' || el.value == '430' ){
document.getElementById("formulario").style.backgroundColor = '#54FF9F';
document.getElementById("body").style.color = '#000000';
}
else{
document.getElementById("formulario").style.backgroundColor = "#FF4040";
document.getElementById("body").style.color = '#FFFFFF';
}
}
Jquery:
$("select[name='nome_tecnico']").change(function() {
if( $( this ).val()=='' )
%('#body').css("backgroundColor","#f9f9f9");
else if( $( this ).val()=='428' || $( this ).val()=='429' || $( this ).val()=='430')
%('#body').css("backgroundColor","#54FF9F");
else
%('#body').css("backgroundColor","#FF4040");
});
O jquery não está funcionando e não emite nem um erro !! nem no IE nem no FF nem no Chrome!! laguem pode me ajudar!!
Discussão (2)
Carregando comentários...