Saturday, 10 August 2013

what is this: $('')

what is this: $('')

In a tutorial I came across this jQuery:
var encodedName = $('<div />').text(name).html();
I havent seen the '<div />' before. Doesnt look like a CSS selector. Any
ideas?

No comments:

Post a Comment