Skip to content Skip to sidebar Skip to footer

Javascript Take Value From Array

form name='car' onsubmit='return validate()' input type=text name=input[][] value...... how can I alert value from filed input that is an field array? function validate(){

Solution 1:

Well, just use square brackets:

document.car.elements['input[][]'].value;

Post a Comment for "Javascript Take Value From Array"