jQuery mendapatkan panjang teks input
$('input selector here').val().length
Galilo
$('input selector here').val().length