My code is
<script>
$(document).ready(function() {
var status = $("#counter")
$("#post").keyup(function() {
var cVal = jQuery(this).val()
cVal = jQuery.trim(cVal)
if(cVal.length == 0) return
cVal = cVal.replace(/['\.\?"]/,"")
var words = cVal.split(/\W/)
var chars = cVal.length
status.text("You've written "+words.length+" word(s) and "+chars+" characters.")
})
})
</script>
it works but then all of a sudden my other functioning stop working.
I have the idea that there is a conflict maybe. Also I have to include the latest jquery script since it never worked without it.
I do not know why it is doing this?