jquery - Why this event is not fired on fiddle? -


this code! don't know why addtrack not recognized :

<input type="submit" onclick="addtrack(this);return false" value=" add ">  function addtrack(param) {     alert("ciao"); } 

error : uncaught referenceerror: addtrack not defined

set script insertion mode no wrap (head) instead of onload , work expected.

updated fiddle here.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -