Posted By

omerta83 on 07/08/10


Tagged

javascript jquery


Versions (?)

Passing attributes for an object as the second argument to the jQuery function itself


 / Published in: JavaScript
 

  1. $('', {
  2. text: 'jQuery is awesome!',
  3. href: 'http://www.jquery.com',
  4. id: 'someAwesomeID',
  5. rel: 'external',
  6. title: 'This is a title'
  7. }).appendTo('body');
  8.  

Report this snippet  

You need to login to post a comment.