Código Javascript:
Ver original
function validar(formulario,nombre){
if(document.formulario.nombre.value.length==0){
document.formulario.nombre.style.background = 'Yellow';
}
}
El llamado lo hago bien, pues he probado recibir las variables con alert(formulario/nombre).
He probado
Código Javascript:
yVer original
document.forms[formulario].[nombre].value
Código Javascript:
Ver original
document.forms[formulario[nombre]].value
pero tampoco funcionan.
¿Saben como hacerlo?
 
 
 utilizar variables en document.VARIABLE.VARIABLE2
 utilizar variables en document.VARIABLE.VARIABLE2 
 
  Respuesta: utilizar variables en document.VARIABLE.VARIABLE2
 Respuesta: utilizar variables en document.VARIABLE.VARIABLE2 

