Changes

Jump to navigation Jump to search
Line 20: Line 20:  
                   .text('hello world');
 
                   .text('hello world');
   −
  According to jQuery Cookbook this is much, much faster
+
According to jQuery Cookbook this is much, much faster
 
   <nowiki>    
 
   <nowiki>    
 
   $parent = $('#someId').append($('<div id="foo" class="foobar baz">Hello World</div>'));
 
   $parent = $('#someId').append($('<div id="foo" class="foobar baz">Hello World</div>'));
 
   </nowiki>
 
   </nowiki>
FYI, prefixing cached jQuery reference w/ a "$" is a good practice.
+
FYI, prefixing cached jQuery reference w/ a "$" is a good practice.
   −
   
==Putting style information inline==
 
==Putting style information inline==
 
   <nowiki>
 
   <nowiki>
359

edits

Navigation menu