Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function countRemainingCharacters(){
- var textLength = $(this).val().length;
- if (textLength > 140)
- $(this).attr('readonly', 'readonly');
- else
- $(this).attr('readonly', null);
- $("#numberOfCharactersLeftInTextbox").text(140 - textLength);
- }
Add Comment
Please, Sign In to add comment