Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to find a list of all jQuery events?

Tags:

jquery

I really did try Google and jQuery documentation for this and I give up.

I need event names. No - I don't need to load them with code, I need them as HTML page, you know, to read and check what was the exact name of this event I've just forgotten. I'm sure there are hidden somwhere around the web laughing at me :)

It's pointless for me (or anyone) to ask here, "hey, how to attach a code when jQuery.ajax starts". I know, jQuery .ajax() triggers some global and local events, I know, if I'll waste another 15 minutes for reading whole .ajax() documentation I'll find it, but it's not my point. If you forget rarely used HTML tag name or syntax you just type "HTML tags" in google and find your tag in less than 10 seconds. Try it with jQuery event names :) "Window events" returns quite good documetation by Microsoft.

I'd rather waste my time for really good question: where to find a list of all jQuery events? It would be cool if they had some sort of description, but the most important are names.

I don't need any particular one of them. I need all of them in one place.

It's braindead easy when it comes to "class methods and properties". I know the code can define any number of custom events, but first: DOMDocument defines its defaults, JavaScript window defines its own and jQuery itself defines its own. Is there a list?

like image 951
Harry Avatar asked May 17 '11 09:05

Harry


2 Answers

Check out my jQuery cheat sheet at http://learningcsharpnet.blogspot.com/2011/05/and-now-for-something-completely.html

like image 129
Andrew Cooper Avatar answered Sep 27 '22 23:09

Andrew Cooper


Events in jQuery are just DOM events — except for a few exceptions that are provided for convenience — so you're not really looking for jQuery events. That's the reason you're having a hard time finding them.

Since the events supported by each browser differ you really need to be looking at either a place like Quirksmode, for compatibility tables, or each vendor's support site like Mozilla Developer Network or MSDN.

Remove the on prefix for any event when binding with jQuery.

like image 21
Andy E Avatar answered Sep 27 '22 22:09

Andy E