jquery get the length of input text

JavaScript
$('input selector here').val().length
Source

Also in JavaScript: