¡@

Home 

2014/10/16 ¤W¤È 12:07:17

jquery Programming Glossary: rowidx

jQuery Validation plugin doesn't validate dynamically created form elements

http://stackoverflow.com/questions/18022224/jquery-validation-plugin-doesnt-validate-dynamically-created-form-elements

looks like this function addTimeRow table stime var rowIdx '#seminarTimes tr' .length 1 var id ' input type hidden name.. fields don't get validated EDIT My current solution var rowIdx 0 function addTimeRow table stime var id .validator.format '.. ' input type hidden id stid 0 name stid 0 ' rowIdx var dateField .validator.format ' input type text id date 0..

jQuery Validation plugin doesn't validate dynamically created form elements

http://stackoverflow.com/questions/18022224/jquery-validation-plugin-doesnt-validate-dynamically-created-form-elements

. Currently the code for adding a new row with input elements looks like this function addTimeRow table stime var rowIdx '#seminarTimes tr' .length 1 var id ' input type hidden name stid ' var dateField ' input type text name date class input.. on the server side. Are these arrays the problem why my input fields don't get validated EDIT My current solution var rowIdx 0 function addTimeRow table stime var id .validator.format ' input type hidden id stid 0 name stid 0 ' rowIdx var dateField.. var rowIdx 0 function addTimeRow table stime var id .validator.format ' input type hidden id stid 0 name stid 0 ' rowIdx var dateField .validator.format ' input type text id date 0 name date 0 class input mini ' rowIdx var date ' div class input..