Greg Sidelnikov ( @gregsidelnikov ) in his twitter account has published multiple snippets about jQuery and here is a recopilation.
41 to 80 in the jquery-tweets-tutorials-by-greg-sidelnikov-part-2
81 to 101 in the jquery-tweets-tutorials-by-greg-sidelnikov-part-3
#jQuery tutorial tweet 1 ~ Little known CSS selector is “:not”, it helps to select “everything but xyz.” Example $(“* :not(‘xyz’)”).hide();
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 2 ~ You can stack up “:not” selectors using space as in ~ $(“* :not(‘ul’) :not(‘body’)”).css(“background”,”red”);
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 3 ~ The .attr(“var”); method can refer to a custom attribute invented by yourself. For example: <div var=”xyz”>
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 4 ~ A nameless “callback function” is most often the last argument. It’s executed when the statement is finished.
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 5 ~ Latest version recommends that we start using .on() and .off() instead of .bind(), .unbind(), .click(), etc.
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 6 ~ $(‘div’).prepend(‘Before’).append(‘After’); on “<div>1</div>” will produce “<div>Before1After</div>”
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 7 ~ Use .wrap() to “surround” HTML elements with other elements ~ $(‘P’).wrap(‘<DIV />’); wraps all Ps with 2 DIVs.
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 8 ~ Get HTML inside of an element whose id is “clock” and store as text string ~ var content = $(“#clock“).html();
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 9 ~ To “cut and paste” all <P> tags on the page and move them into #container, use ~ $(“P”).appendTo(“#container“);
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012
#jQuery tutorial tweet 10 ~ appendTo() does exactly the same thing as append(), except the selector and functions’ arguments are reversed.
— Greg Sidelnikov (@gregsidelnikov) July 22, 2012

[...] jQuery tweets tutorials by Greg Sidelnikov – Part 1 jQuery tweets tutorials by Greg Sidelnikov – Part 2 By Tmeister On July 31, 2012 · [...]
[...] 1 to 40 jquery-tweets-tutorials-by-greg-sidelnikov-part-1 [...]