dynamic input field array validation. |
I have dynamic input field like this
PHP Code: <input type="text" name="fault[0]" placeholder="" class="form-control name_list" /> this field can be increment like fault[1], fault[2], fault[3].......fault[10] as many as the user willing to add the fields. how can i set validation rule for this? code example please.
note the brackets after the field name value
PHP Code: $formrules = array(
(08-09-2016, 06:41 PM)cartalot Wrote: note the brackets after the field name value Thanks mate this works. |
Welcome Guest, Not a member yet? Register Sign In |