mardi 7 juin 2016

Populating dynamic html elements on validation failure in Laravel 5.1

In my form, I am populating state and city dropdowns using ajax. Also, on the same form the user can add multiple employees by clicking on the "Add more button".

In both above scenarios the HTML DOM elements are generated using jquery.

I need re-build the dynamically generated elements in case the validation fails on form submit.

Can anyone please tell me a right approach for achieving the above mentioned issue.

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire