JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<input maxlength="4">

JavaScript

$('input').removeAttr('maxlength');
alert($('input').attr('maxlength'));
alert(typeof $('input').attr('maxlength'));