This might be a rather silly question. But how do you highlight or select any text or p tag in the body and jQuery will count the selected/highlighted characters? Thanks
I've got this, but getting 0
<script>
$(document).ready(function(){
$('p').mouseup(function(){
var length = $(this).val().length;
console.log(length);
});
});
</script>
P.S. For those who voting down. Why do you do that? Should not we be helping each other?!