jQuery Validation plugin Two custom rules not working

0 votes

I'm using jQuery validation engine and I have two custom rules that I need to use for one field. I've tried both of them one by one, they work fine. How do I attach both?

class="validate[required,custom[OFS, onlyLattinLetters], maxSize[140]]"

or

class="validate[required,custom[OFS], custom[onlyLattinLetters], maxSize[140]]"

doesn't work.

Jun 20, 2022 in JQuery by gaurav
• 23,260 points
1,497 views

1 answer to this question.

0 votes

validation plugin works according to the name attribute and not id. try changing the name attribute on your input.

answered Jun 20, 2022 by rajatha
• 7,680 points

Related Questions In JQuery

0 votes
1 answer

Error:jQuery scrollTop not working in Chrome but working in Firefox

Hello @kartik, If your CSS html element has the following overflow markup, scrollTop will ...READ MORE

answered May 29, 2020 in JQuery by Niroj
• 82,840 points
14,859 views
0 votes
1 answer

jquery timepicker cdnjs.cloudflare does not working

jQuery Timepicker can parse the most used ...READ MORE

answered Jun 1, 2022 in JQuery by Edureka
• 13,690 points
1,510 views
0 votes
1 answer

jquery easyupload plugin not uploading pdf files

In this case, we need to check upload_max_filesize and post_max_size. http://php.net/manual/en/features.file-upload.php <?php try ...READ MORE

answered Jun 3, 2022 in JQuery by Edureka
• 13,690 points
702 views
0 votes
1 answer

jQuery slideDown() animation not working

Your p element is already displayed when you enter ...READ MORE

answered Jun 16, 2022 in JQuery by rajatha
• 7,680 points
1,465 views
0 votes
0 answers

Jquery validation plugin - TypeError: $(...).validate is not a function

I am getting an error in my ...READ MORE

May 7, 2022 in Java-Script by narikkadan
• 63,600 points
1,475 views
0 votes
1 answer

how to add erroricon and custom validation message using jquery?

By default, the error message is put ...READ MORE

answered Jun 30, 2022 in Web Development by rajatha
• 7,680 points
4,634 views
0 votes
1 answer

Translate custom jQuery validation messages

we use a snippet like the following ...READ MORE

answered Aug 1, 2022 in Web Development by rajatha
• 7,680 points
2,674 views
0 votes
0 answers

jQuery Validate plugin not validating an element that's not a form input

I need to validate with jQuery Validation ...READ MORE

Aug 18, 2022 in Web Development by gaurav
• 23,260 points
1,865 views
0 votes
1 answer

Jquery validation plugin - TypeError: $(...).validate is not a function

The "$(...). validate is not a function" ...READ MORE

answered Jun 28, 2022 in JQuery by rajatha
• 7,680 points
16,860 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP