JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

<script type="text/javascript">
    var git = jQuery.noConflict();
</script>
<script src="http://timmywillison.com/jquery/attrhooks/jquery.js"></script>
<textarea>sometext</textarea>
<input>

JavaScript

console.log('jQuery git: ', git('textarea').attr('maxLength'));
console.log('jQuery git: ', git('input').attr('maxLength'));
console.log('jQuery attrHooks: ', $('textarea').attr('maxLength'));
console.log('jQuery attrHooks: ', $('input').attr('maxLength'));