I have this code that someone else wrote and am wondering, what this jQuery code is selecting? Is this valid jQuery code?
var a = $("<h3/>").append($("<a/>", {
href : "/comic/title.html",
class : "comic-link"
}).text("comic-name"));
I have never seen HTML tags being used like <h3/> or <a/>.
$("<h3/>"creates a new h3 element$("<a/>", { attributes})creates an<a/>with those attributes.text()appends the textvar a =the whole un-attached newly created DOM element (wrapped in a jQuery object)