jquery $('<div>') vs $('<div />')

javascript, jquery

Solution

They produce identical results in jQuery.

Problem

Possible Duplicate: $('<element>') vs $('<element />') in jQuery Which one of these two are the correct way to do it: ``` $('<div>') ``` or ``` $('<div />') ``` They both seem to work. Is one way more right than the other, or do they both always work?

Original source

Related problems