I want to know what is 'e' (s. following source code) and what member it has. Where do I find a documentation for this kind of stuff? I would like to have "one" documentation for the whole jQuery-API and all parameters. Searching in Google is too time-consuming...
$("#idxy").mousedown(function(e) { ... });
Do you have any recommendations?
Check out the official jQuery documentation.
In this case, e
refers to the Event object, which is passed to all event handlers by jQuery. This differs to a standard Event object in that jQuery normalizes many properties for cross-browser consistency.
One extremely handy tip is that you can type http://api.jquery.com/methodName and you'll get shown the documentation for that method; try it out;
mousedown()
functionattr()
functionlength
member... you get the idea ;).
e is an event object that gets passed to the function with details of the event that caused it.
The properties will be different depending on what raised the event in the first place, see the JQuery documentation for more details:
http://api.jquery.com/category/events/event-object/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With