User Tools

Site Tools


eg-259:ch14

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
eg-259:ch14 [2013/02/27 08:06] eechriseg-259:ch14 [2013/02/27 08:20] – [Traversing the DOM] eechris
Line 218: Line 218:
 ===== Fiddle with jQuery ===== ===== Fiddle with jQuery =====
  
-**Play with this example on [[http://jsfiddle.net/cpjobling/pvknH/10/|jsFiddle]]**+**Play with this example on [[http://jsfiddle.net/cpjobling/pvknH/12/|jsFiddle]]**
  
 ===== jQuery Selection ===== ===== jQuery Selection =====
Line 273: Line 273:
  
   * Filtering by equivalent of CSS pseudo classes   * Filtering by equivalent of CSS pseudo classes
-  * See this example on [[http://jsfiddle.net/cpjobling/45Uw6/2/|jsFiddle]]+  * See this example on [[http://jsfiddle.net/cpjobling/45Uw6/3/|jsFiddle]]
  
 <code javascript> <code javascript>
Line 316: Line 316:
 Functions that help you move around the selection set: Functions that help you move around the selection set:
 <code javascript> <code javascript>
-jQuery('p').add('<span>A Span</span>');+jQuery('p').append('<span>A Span</span>');
 var children = jQuery('p').children(); var children = jQuery('p').children();
 jQuery('li').each(function(index) { jQuery('li').each(function(index) {
eg-259/ch14.txt · Last modified: 2013/03/05 15:59 by eechris