Selector using element id stored in a var?
<p>I've stored the id of an element as a string, I want to get it using a jquery selector, like:</p>

<pre><code>var theid = $('#test').attr('id');

... later ...

$(theid).remove();
</code></pre>

<p>what's the right syntax for running the selector using the string variable which contains the id of the element I want to remove?</p>

<p>Thanks</p>
