Check if element appended already w/ jQuery
<p>I need to modify a function. When a condition is met an element is appended. I need to add a check to see if this element has been already added, because it can be only added just once.</p>

<pre><code>function checkBox()
{
 if ($("#myBox").find('.myClass').length == 0)
 {
   $("#myBox").append(
        $('&lt;a href="" id="newBox"&gt;click&lt;/a&gt;')
   );   
 } 
}
</code></pre>
