jQuery - maxlength value with .attr

0 votes
226 views
added Sep 20, 2018 in jQuery by LC Marshal Captain (25,790 points)
$('input#personal-id').val('e.g 888888888888').attr('maxlength', 12);

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...