E ae galera...
Precisava de um Script que fizesse o seguinte...
Tenho 3 checkbox...cada um deles está relacionado com algum input type text...
Quando eu selecionar um dos checkbox...queria que o foco mudasse automaticamente para o input na frente dele...tem como?
Valeu galera!

Checkbox
Started By Paulo Beck, 04/05/2006, 17:32
1 reply to this topic
#1
Posted 04/05/2006, 17:32
#2
Posted 04/05/2006, 17:52
vaiProProximo = function( trem ) { if ( trem.nextSibling && trem.nextSibling.focus ) { trem.nextSibling.focus(); } };
<p> <input type="checkbox" onclick="vaiProProximo( this );" /><input type="text" /> </p> <p> <input type="checkbox" onclick="vaiProProximo( this );" /><input type="text" /> </p> <p> <input type="checkbox" onclick="vaiProProximo( this );" /><input type="text" /> </p>
* não testei.
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)