I have a textarea in my form :
<html:textarea property="msgText" rows="10" cols="40" disabled="false" onmouseup="checkLength()" onkeyup="checkLength()" />
i need to set a maxlength for that, but the problem is that there is no such attribute for this tag, so im calling a function to do this,
my problem is that im calling this function on all the events on textarea, such as onmouseup, onkeyup, onkeydown and ...but i think onmouseup and/or onmousedown are not working properly specially in Firefox(it sometimes work in IE). So when I copy and paste using the mouse none of these events are called, any idea how to handle this?