jQuery offers a very powerful range of tools to select elements. These are influenced from CSS and some created of their own.
July 20th, 20122 Comments, jQuery, by Joakim Ling.
There are several reliable content delivery networks that are free to use to host your jQuery file. These are widely used and the chance that the client has it cached in browser are high. Both Google and Microsoft are available for public use.
March 30th, 2011No Comments, jQuery, by Joakim Ling.
This is probably the first thing to learn about jQuery. Everything inside the $(document).ready() function will execute as soon as the DOM is registered by the browser and before the page contents are loaded. So if you want an event to work, call it inside this handler. This means that everything you stick inside the brackets is ready to go at the earliest possible moment, which allows hiding and showing effects and other dynamic functionality when the user sees the page elements.
March 28th, 2011No Comments, jQuery, by Joakim Ling.
How to change data of a div element using an AJAX jQuery GET request. The jQuery get() method is used to perform an AJAX HTTP GET request.
March 24th, 20111 Comment, jQuery, by Joakim Ling.
Let’s say you want to track all A tags with a specific href value with Google Analytics. This is quite simple and very useful if you want to see how many clicked on open a dialog, gallery etc.