jQuery .prop() try to set minlength

With
$('#textarea').prop('minlength', 25);
And try to validate is so work fine in just html minlength="25" but when set with jquery above line that not want to validate the minlength why??? Any idea why?

The property is minLength (capital L).

Edit: If you are ever in doubt about the properties or just want to look at them. Right click the element and inspect it, make sure it’s selected in the DOM inspector, go to the console tab and type $0, press enter and you should see the element in the console. Now if you do $0. (dot) it will list all the properties on the element.

1 Like