November 2011
Intermediate to advanced
384 pages
13h 23m
English
After jQuery is loaded, you can execute any jQuery methods using the following syntax within a <script type='text/javascript'> tag group:
<script type='text/javascript'> $(selector).method(params); ... </script>
The dollar sign is a special function exported by the jQuery library; you use it to specify a CSS-style selector that identifies an HTML object or objects. .method (params) indicates what you want to apply to that selector, described by the jQuery API. Multiple methods can be called in a row.
If your jQuery code comes before your selected HTML code, you can instruct jQuery to wait until the page has loaded:
<script type='text/javascript'>
$(document).ready(function(){ $(selector).method(params); ...Read now
Unlock full access