Possible Duplicate:
$(‘<element>’) vs $(‘<element />’) in jQuery
I am used to write $('<div>')
.
But today I saw a presentation about advanced-jquery by john-resig who use the following syntax $('<div/>')
.
http://loft.bocoup.com/john-resig-advanced-jquery/
To me they seem to produce the same output.
My question is: is there some difference between
$('<div>')
and $('<div/>')
?