forum

Home / DeveloperSection / Forums / jquery: prevent form submit on ajax validation error

jquery: prevent form submit on ajax validation error

Anonymous User420316-Feb-2013

Hi MindStickians!

I have a form with some ajax validation fields.(not all fields are validated using ajax)

I want to prevent form submit if there is an error on one of those fields.

I would like it to be generic for other forms I have with ajax validation.

1 flag would not do the trick.

This is what the ajax field looks like on error:

<label id="id_name_lab" class="error">name</label>
<input id="id_name" type="text" maxlength="128" name="name">
<label id="id_name_succ_icn" class="icon_succ" style="display: none;"></label>
<label id="id_name_load_icn" class="icon_load" style="display: none;"></label>

Thanks in advance!


Updated on 18-Feb-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By