How to apply validation mechanism in my form?

I use the jQuery validation mechanism, but must have a checkbox that has a minimum of 4 and a max of 8.

I know how they do it separately, but do not combine. Little help?

 <class="validate[minCheckbox[4]] <class="validate[maxCheckbox[8]] 
+4
source share
1 answer

Your class name inside your input should be:

 class="validate[minCheckbox[4]maxCheckbox[8]]" 

^ note the space or comma after mincheckbox []

+2
source

Source: https://habr.com/ru/post/1441908/


All Articles