<textarea name="textarea" cols="20" rows="5" id="controller-about-information-about" onkeydown="callname1(this.value);" onkeypress="callname1(this.value);" onkeyup="callname1(this.value);"></textarea> <script> function callname1(str) { alert(str); alert("this textarea"); } </script>
if doing in xhtml document, attribute names have in lowercase (see http://www.w3.org/tr/xhtml1/diffs.html#h-4.2) if want document valid. not sure if makes code "not working".
Comments
Post a Comment