I have a textarea .txt
which has a limit of 250 char.
I want the background of text getting red if reached >250 char. Just like twitter. But i dont wanna use contenteditable
div as used by twitter for many reasons.
$('.txt').keyup(function{
if($(this).val().length>250){
//limit reached now change bg of >250 chars.
}});
I only want to change the background of text after 250 characters & not the whole textarea.