Toggle with jQuery
<p>Greetings everyone!
I want to know if its possible to find out if a div with id="contentEditDiv" excist AFTER the link i just clicked.
My goal is to toggle (remove) only the ajax thats been loaded and inserted after the link.</p>

<pre><code>&lt;a href="#" class="contentEditLink" id="1"&gt;link 1&lt;/a&gt;
&lt;a href="#" class="contentEditLink" id="2"&gt;link 2&lt;/a&gt;
&lt;a href="#" class="contentEditLink" id="3"&gt;link 3&lt;/a&gt;
</code></pre>



<pre><code>$('a.contentEditLink').click(function(){
if( $('#contentEditDiv').length ) {
    $('#contentEditDiv').remove();
}
else {
    var strContentID = $(this).attr('id');
    $('#' + strContentID).after('&lt;div id="contentEditDiv"&gt;&lt;img src="loading.gif" /&gt;&lt;/div&gt;');
    $('#contentEditDiv').load('test.php?contentID=' + strContentID);
}
});
</code></pre>
