JSFiddle - React, Tailwind, and code Playground
by John-Philip Johansson
HTML
<form>
<input minlength="2" maxlength="5" customMethod1="123" />
</form>
<ul id="prop"></ul>
<ul id="attr"></ul>
CSS
form {
display: none;
}
JavaScript
var minlength, maxlength, custom;
minlength = $('input').prop('minlength');
maxlength = $('input').prop('maxlength');
custom = $('input').prop('customMethod1');
$('#prop').append('<li>minlength: ' + minlength + '</li>');
$('#prop').append('<li>maxlength: ' + maxlength + '</li>');
$('#prop').append('<li>custom: ' + custom + '</li>');