I am trying to set the maxlength
attribute for some password input
fields. It is working fine for .credit-card-display
but not for .securityCode
. The same code works fine in all other browsers and IE10 & above.
$('.securityCode').attr('maxlength', '3');
$('.credit-card-display').attr('maxlength', '16');
$('.credit-card-display').attr('data-format',"dddddddddddddddd"); $('#CREDIT_CARD_SECURITY_CODE').attr('maxlength', '3');
$('.securityCode').attr("placeholder", '000');
so please let me know how to solve this problem.