javascript - jQuery validation on dropdown and form repeater -
i've got form wizard form repeater , need validate dropdown before accessing next step. i've tried different solutions , managed validation on first form doesn't work repeated form. javascript code if ($("body").data("title") === "admin_new_user") { var formwizard = function () { return { //main function initiate module init: function () { if (!jquery().bootstrapwizard) { return; } var form = $('#submit_form'); var error = $('.alert-danger', form); var success = $('.alert-success', form); // regex pe rla validazione del campo email $.validator.methods.email = function( value, element ) { return this.optional( element ) || /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0...