jquery - javascript validation of control array -
i doing application in end user can create 'n' number of textbox on runtime. if user demand 'n' number of textboxex have used control array e.g.
enter data: <input type="text" name="txtdata[]" id="txtdata1" /><br/> enter data: <input type="text" name="txtdata[]" id="txtdata2" /><br/>
in whole application name based validation used (http://www.javascript-coder.com/html-form/javascript-form-validation.phtml). unable validate above functionality using validation. way validate control array?
just thought, validate when add correct index names?
enter data: <input type="text" name="txtdata[1]" id="txtdata1" /><br/> enter data: <input type="text" name="txtdata[2]" id="txtdata2" /><br/>
and should maybe start numbering 0 if want loop more trough form data after submit. so:
enter data: <input type="text" name="txtdata[0]" id="txtdata0" /><br/> enter data: <input type="text" name="txtdata[1]" id="txtdata1" /><br/>
Comments
Post a Comment