Javascript/JQuery event arguments. I don't understand what this 'e' argument is or does -


jquery:

this.savebutton.click(function (e) {     scope.saveform(); }); 

this simple line of jquery binds .click() event savebutton object , calls saveform function when event fired.

when event called, 'e'? don't think ever used.

the e can used obtain specific information click (left, right or center; coordinates clicked; dom object clicked on), specific code sample doesn't use it.

see http://api.jquery.com/category/events/event-object/ details what's available.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -