Hi

i wanted to do validation using data-validationattribute in jquery,so what i wanted to check is how to limit input in minlength and maxlength and to be only alphabet chars,so maxlength worked but minlength didn't !! it was like "not valid attribute for input in HTML5",

 <label> at least enter 45 chars </label>
           <input name="name" data-validation="custom and length" data-validation-length="min45" data-validation-regexp="^([a-z]+)$"/> 

Now this was like data-validation="custom" but i was totally just trying randomly alone and did this data-validation="custom and length" i dont know why i add and between them but this worked and i both got restriction on length and on minimum number of chars entered
so i did like thisdata-validation-length="min45 and max60" but it didnt work !
can anyone tell me how to restrict the enterd number of chars (min and max ) on the same input using data-validation-length attribute?

also if i can fing properties ofdata-validation="like what to put here to combine validation on more than one property of the input tag" ?

Thank you so much

it worked thank you :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.