How do I work out in jQuery a character counter of a p/div tag?
Basically i want to show a different css value IF the character value >=50.
Been struggling f
var $div = $('#mydiv'); if($div.text().length >= 50) { $div.addClass('class'); }