I just wanted to know if we could get the maxlength of an input field from javascript
<input type="password" id="password" maxlength="20" >
I tried this but it returns undefined
console.log(document.getElementById("password").maxlength);
document.getElementById("password").maxLength
To access it with Javascript you need an uppercase 'L'