How would I create a void element?


How do I create a void element(an element without a closing tag) with jQuery? Is there a special function or technique I need to know about?

Thanks in advance!


What is wrong with:



Is this not what you want?


How would I create one with text, like the < input > tag?

$('#one').after('<input id="name" name="name" value="text">');


Oh, okay.
Thank you!