What are the top 5-10 most often used jQuery native API functions? (please do not suggest jQuery() function itself as there is no doubt this is the most often used one) If it is possible please also provide scenarious they cover.
The reason to ask this question is my attempt to create a jQuery-like API to the Ample SDK JavaScript GUI Framework (there it is mainly matter of re-pointing functions, thanks to all functionality implementation present). This framework has already standard APIs (DOM Level 2-3), however from what I hear, many developers do not know well DOM APIs, others don’t like those APIs, but they like concise API of jQuery (both convinient functions and fluid programming practice)
I find I’m using .val, .attr, .addClass, .removeClass, .hasClass, .hover, .click the most.
.val / .attr / .hasclass I use to identify pre-set values. I usually use custom attributes on elements, and getting them back with attr is great. Like storing if I’ve already pre-loaded content of an element. The rest is pretty straight forward.