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

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -