Yes, it is from Stack Overflow: http://stackoverflow.com/questions/2932549/what-is-the-status-of-jquerys-multi-argument-content-syntax-deprecated-support
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 for the after
modifier 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 */
);
Here is the signature for after: .after( content )
. But, as my example shows it should be .after( content [, content...] )
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.
UPDATE: What did it do? I left this out thinking it was obvious:
It inserts a <div class="little check" />
with the aforementioned callback on .click()
and follows it up with a totally new sibling element <span>OEM</span>
.