jquery - What is this: $('<div />') -
in tutorial came across jquery:
var encodedname = $('<div />').text(name).html();
i havent seen '<div />'
before. doesnt css selector. ideas?
this construction creates new jquery object contains 1 div
element. can shorter though: $("<div>")
Comments
Post a Comment