jQuery
jQuery
by lshettyl
HTML
> $('div') and $('<div>')
> doc ready and onload
> $(this) and this
> check if an element is empty
> existence of an element
> eq and get
> disable animation (jQuery.fx.off)
> remove() and detach()
> .bind() vs .live() vs .delegate() vs .on()
> $('#myid.3').text('blah blah!!!') (escape meta chars with \\)
> clone with true flag (copy events)
> attr v/s prop
> event.PreventDefault and return false
> attach an event to be executed only once (.one())
> pause document.ready for sometime
> caching
> .ajax v/s short hands
> multiple CSS properties in single statement ( >= 1.9) ($("#dvBox").css([ "width", "height", "backgroundColor" ]))
> JQuery.noConflict
> capture mouse right click (contextmenu)
> keyup and input events
>
Practical:
> Tabbed Panel
> Change all the links from http to https
> Count the number of milliseconds between the two click events (bit silly)
> function that returns a passed string with letters in alphabetical order