what's the best way to remove element(s) i inserted with after()
<p>when I click a button, i appended (inserted) after it a div with new div, and i donot want to give id to the new div, because i want this function could be use by other button/anchor/etc.</p>

<pre><code>$("#buttonA").click(function(){
$("#div1").after("&lt;div&gt;bla bla bla&lt;/div&gt;");
});
</code></pre>

<p>and then by an event i want to remove the inserted div.
what's the best way to remove inserted div? ... i still cant make it generic, i must apply ID on the new inserted div, and then to remove it i use </p>

<pre><code>$("#newid").remove() 
</code></pre>
