<script type="text/javascript">
function muda()
{
if(document.getElementById("okm").checked==true){
document.getElementById("placa").defaultValue="OKm";
}
if(document.getElementById("okm").checked==false){
document.getElementById("placa").defaultValue="";
}
}
</script>
<input name="checkbox" type="checkbox" id="okm" onclick="muda()"/>
alguem pode dar um help!!
vlws
Pq Não Funciona No Ie?
Started By danceman, 11/04/2007, 16:29
1 reply to this topic
#1
Posted 11/04/2007, 16:29
#2
Posted 12/04/2007, 09:10
Substitua defaultValue por value<script type="text/javascript">
function muda()
{
if(document.getElementById("okm").checked==true){
document.getElementById("placa").defaultValue="OKm";
}
if(document.getElementById("okm").checked==false){
document.getElementById("placa").defaultValue="";
}
}
</script>
<input name="checkbox" type="checkbox" id="okm" onclick="muda()"/>
alguem pode dar um help!!
vlws
Fórum WMO - Conselheira - Na equipe desde 31/01/2006.
Links importantes: Regras de conduta - Busca do fórum
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)