While jQuery is a great improvement on classic Javascript, it’s still not perfect. What works in version 1.3 doesn’t automatically work in 1.7 and what works in Firefox, doesn’t automatically work in IEx. The syntax isn’t very straightforward and some properties are misleading (eg: .val() vs .value())

This is an updated! incomplete list of stuff I need regularly that works in jQuery/javascript:

DOM Hierarchy

Get an ancestor

$("#element").parents(".these_ancestors")

Continue reading “The jQuery and Javascript code snippets you should learn by heart”…


Wordpress.org clearPaper by CreativeBits.it Copyright © 2012-2019 Robin Brackez. All rights reserved. By visiting this site you agree to accept cookies that are purely used to check how many visitors I have. Theme by: creativebits. Custom adaptations by Robin Brackez.