How can I validate dynamically created form fields. My form structure is
{{ form::text('works[0]["company"]','',array('class'=>'text_field form-control')) }} {{ form::text('works[0]["title"]','',array('class'=>'text_field form-control')) }}
after dynamically added it will become this
{{ form::text('works[0]["company"]','',array('class'=>'text_field form-control')) }} {{ form::text('works[0]["title"]','',array('class'=>'text_field form-control')) }}
{{ form::text('works[1]["company"]','',array('class'=>'text_field form-control')) }} {{ form::text('works[1]["title"]','',array('class'=>'text_field form-control')) }} . . . {{ form::text('works[n]["company"]','',array('class'=>'text_field form-control')) }} {{ form::text('works[n]["title"]','',array('class'=>'text_field form-control')) }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community