Hi list

How can do it when I press automatic change to next field visible? the field
can be input=text or input=select.

I have
<form id="main_form" action="vale_alta.py">
<ul>
<li><label for="ejercicio">Ejercicio</label>
     <select id="ejercicio" name="ejercicio">
         <option value="">Seleciona una opcion</option>
         <option value="2008">2008 (Saldo $1000.00)</option>
     </select>

      <input type="hidden" id="centro" name="centro" value="230000" />
</li>
<li><label for="proyecto"><a id="proyecto_window"
href="#">Proyecto</a></label>

         <input type="text" id="proyecto" name="proyecto" size="5" />
         <input type="hidden" value="2008" id="ejercicio2" name="ejercicio2"
/>
         <span id="proyecto_nombre"></span>
         <input type="hidden" id="ures" name="ures" />
         <input type="hidden" id="linea" name="linea" />
</li>
<li><label for="material"><a id="material_window"
href="#">Material</a></label>
        <input type="text" id="material" name="material" size="5" />
         <span id="material_porgastar"></span>
         <span id="material_nombre"></span>
         <input type="hidden" id="fondo" name="fondo" />
         <input type="hidden" id="cuenta" name="cuenta" />
</li>
<li><label for="vale">Vale</label>
        <input type="text" id="vale" name="vale" size="5">
</li>

<li><label for="concepto">Concepto</label>
        <textarea id="concepto" name="concepto" rows="3"
cols="40"></textarea>
</li>
<li><label for="fecha">Fecha</label>
      <input type="text" class="fecha" id="fecha" name="fecha" size="10">
</li>
<li><label for="importe">Importe</label>
      <input type="text" id="importe" name="importe" size="5">
</li>
<li><label for="conletra">Con letra</label>
       <input type="text" id="conletra" name="conletra" size="40">
</li>
<li><label for="responsable">Responsable</label>
       <input type="text" id="responsable" name="responsable" size="30"
value="DRA. I. LETICIA LEAL MOYA" />
</li>

<li><label for="favor">A favor de</label>
       <input type="text" id="favor" name="favor" size="30">
</li>
</ul>
<br>
<input type="submit" /><input type="reset" />
<input type="hidden" value="vale" id="origen" name="origen" />
</form>


I had thinking something like this

nextField=function(evt){
  //but here I am loosed
}

document.observe('dom:loaded', function(){
   $('main_form').invoke('observe', 'keyup', nextField);
}
-- 
________________________________________
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to