“Event is not defined” in firefox

emiguelito

New Member
HTML Code which calls a function on a level select event. This code is written in Ember framework.\[code\]{{ action "onLevelSelect" this on="change" target= "view"}}\[/code\]Javascript function which is called by triggering this event:\[code\]onLevelSelect : function(event) { var getSelectedLevel = event.target.selectedOptions[0].label; // error line /*rest of the code goes below*/}\[/code\]When it comes to "error line", i m getting this error. \[quote\] \[code\]"ReferenceError: event is not defined".\[/code\]\[/quote\]I have tried window.event and event.which and i also tried by sending event explicitly to the function \[code\]"onLevelSelect"\[/code\].
 
Back
Top