March 2013
Intermediate to advanced
56 pages
1h 7m
English
In order to write effective jQuery, it's important to write well marked-up HTML. Browsers are generally forgiving, and will render most markup to the best of their abilities. But jQuery, which has been referred to as the "find-something/do-something" framework, accomplishes the "find-something" part with its powerful selector engine (see http://api.jquery.com/cateogry/selectors/).
For example, including <thead>, <tbody>, and <tfoot> tags in your table give jQuery direct access to those DOM elements. Consider the following table markup:
<table id="myTable"> <thead> <tr><th>Column 1</th></tr> <tr><th>Column 2</th></tr> </thead> <tfoot> <tr><td colspan="2">© Charlie Griefer. So there!</td></tr> ...
Read now
Unlock full access