Confused by jQuery syntax? Never sure when/where to place your parentheses, curly brackets and so-on? Use the jQuery Function Builder to quickly build up a collection of functions that will be called when the page has loaded/is ready.
Using jQuery for scripting encourages good coding practices as it means that behaviour is layered over the top of a basic document which is more likely to be usable even if JavaScript is disabled (although this is not guaranteed – it still depends on the knowledge of the person coding!).
All you have to do is to select the trigger item(s), event handler and what should happen next and let jQuery Function Builder create this function for you. In advanced options the syntax of ‘Document ready’ can be selected.