Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/12/2012, 06:24
Avatar de satjaen
satjaen
 
Fecha de Ingreso: septiembre-2012
Ubicación: Jaén (Andalucía)
Mensajes: 893
Antigüedad: 12 años, 5 meses
Puntos: 10
Condiciones y validaciones

Hola, quiero hacer esto:

Código PHP:
function NuevoAviso(){
    
     var 
APARATO document.forms['form1'].elements['APARATO'];

     if (
APARATO.value.length == 0){ 

       
alert("¡Insertar el Aparato!");

         
APARATO.focus();

     }else{ 
     
     if (
confirm("¿Nuevo aviso?")){
         
     
document.form1.submit()    
    
     }else{ 
                   
                } 
Esta bien? no me funciona.

Gracias y un saludo