sending a variable through jquery.get function depending on which div is clicked
<p>Heres the markup:</p>

<pre><code>&lt;div id='0203' class='threadWrapper'&gt;
&lt;div class='littleme'&gt;
</code></pre>

<p>I am trying to send the id of a parent div as a parameter in jquery.get function:</p>

<pre><code>$('.littleme').click(function**()**{
var id = $(this).closest("div").attr("id");
$.get("PHP/viewedThread.php", {viewedURLID: id});
});
</code></pre>

<p>and am getting rather lost I'm afraid.</p>

<p>...ammendment...
$(this).closest(".threadWrapper").attr("id");</p>
