Would appending to a non existing element create a new instance of that element in JQuery?
<p>In my browser, I have a textbox and a submit button. Using the text from the textbox, I want to add that text as a list item at the end of an unordered list. The unordered list does not exist yet but I want the text to appear under the textbox and submit button. I made this function:</p>

<p><strong>Code:</strong> </p>

<pre><code> function display(text) {                       // 'text' from the textbox
      $('ul').append('&lt;li&gt;' + text + '&lt;/li&gt;');
 }
</code></pre>

<p>When I use .display(), I want to be able to display the text in the parameter as a new list item in an unordered list. </p>

<p><strong>Question:</strong> Does JQuery create a new 'ul' if one doesn't exist yet or should I create one first? If so, am I using JQuery correctly to add a list item to the unordered list? </p>

<p>Any advice helps! Thanks! </p>
