Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/09/2013, 17:50
Avatar de satjaen
satjaen
 
Fecha de Ingreso: septiembre-2012
Ubicación: Jaén (Andalucía)
Mensajes: 893
Antigüedad: 12 años, 6 meses
Puntos: 10
Hacer tres funciones en un solo script.

Por favor, estoy intentando hacer este código pero no me sale. Intento mandar tres formularios en un solo script. Pero solo me hace la última funcion 3().


Código Javascript:
Ver original
  1. <li><a href="#" onclick="funcion1(),funcion2(),funcion3()" data-icon="plus" data-theme="a"  >Añadir y continuar</a></li>



Código Javascript:
Ver original
  1. <script language="javascript">
  2.  
  3. function funcion1()
  4.  
  5. {document.getElementById('form1').submit();}
  6.  
  7. function funcion2()
  8.  
  9.  
  10. {document.getElementById('form2').submit();}
  11.  
  12. function funcion3()
  13.  
  14. {document.getElementById('form3').submit();}
  15.  
  16. </script>


Gracias