Jquery Validation: Disable/Skip Jquery validation at certain condition
There is time when validation is not needed when certain submit button is clicked.
Eg: when there are 'Clear' and 'Submit' buttons. Jquery validation has been initiated for the form which contain both of these submit buttons. However, when 'Clear' is clicked, and it is needed to submit the form for backend processing, jquery validation will assume this submit required checking as how 'Submit' button was.
To handle this scenario, it is very easy. To prevent validation to take place when 'Clear' button is clicked, simply add class="cancel" for that submit button and it will skip the validation.
Eg: <input class="cancel" name="clear" type="submit" value="Clear">
It is just as simple as this.
Happy coding
Eg: when there are 'Clear' and 'Submit' buttons. Jquery validation has been initiated for the form which contain both of these submit buttons. However, when 'Clear' is clicked, and it is needed to submit the form for backend processing, jquery validation will assume this submit required checking as how 'Submit' button was.
To handle this scenario, it is very easy. To prevent validation to take place when 'Clear' button is clicked, simply add class="cancel" for that submit button and it will skip the validation.
Eg: <input class="cancel" name="clear" type="submit" value="Clear">
It is just as simple as this.
Happy coding
mmorpg oyunlar
ReplyDeleteİnstagram Takipci Satin Al
Tiktok jeton hilesi
Tiktok Jeton Hilesi
antalya saç ekimi
İNSTAGRAM TAKİPCİ SATIN AL
instagram takipçi satın al
metin pvp
instagram takipçi satın al
Smm Panel
ReplyDeletesmm panel
iş ilanları
İNSTAGRAM TAKİPÇİ SATIN AL
HİRDAVATCİ BURADA
Beyazesyateknikservisi.com.tr
servis
JETON HİLESİ İNDİR