I'm wondering why .html(), .attr(), .css() etc check if a value was passed with "value === undefined" instead of checking with arguments.length if a (second) argument was passed at all.
I ran into problems a few times when chaining one of those methods and passing an undefined variable by accident - and jQuery returned the value instead of the jQuery object.
Sure, this way I instantly knew something was wrong because of a JavaScript error, but still - I'd expect another behavior: jQuery should set nothing when the value is undefined but return the object.
Hi, I have to create an image element within a link tag, which I do with $ ('a.xyz').each. The problem is that content is later loaded with AJAX, therefore the .each doesn't work for the newly created links. For images, the load event would help with this, but that doesn't work for links. So is there something like the load event for links? Or a live-event "each" ;-) Jones