Is it possible to call two javascript functions on one html event? -


i'm trying this:

<textarea onfocus = "myfunction(1)" onblur = "myfunction(0); return submitform();"> 

is possible?

yes syntax wrong, see edited textarea:

 <textarea onfocus="myfunction(1);" onblur="myfunction(0); return submitform();">              ^------                  ^-------- small letter important 

a yet better way attach jquery event handlers, or similiar different preferred framework.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -