What is the status of jQuery's multi-argument content syntax: deprecated, supported, documented?

Posted by Evan Carroll on Stack Overflow See other posts from Stack Overflow or by Evan Carroll
Published on 2010-05-28T21:09:21Z Indexed on 2010/05/28 21:12 UTC
Read the original article Hit count: 203

Filed under:

I've never seen this in any jQuery docs I've read; nor, have I ever seen it in the wild. I just observed multi-content syntax working here with jQuery 1.4.2. Is this supported syntax? Is it deprecated?

$(".section.warranty .warranty_checks :last").after(
  $('<div class="little check" />').click( function () {
      alert('hi')                                       
  } )                                                   
  , $('<span>OEM</span>')  /*Notice this (a second) argument */    
);                                                      

I've never seen any indication in the jQuery grammar that any of the functions accept more than one argument (content) in such a fashion.

© Stack Overflow or respective owner

Related posts about jQuery