sending a variable through jquery.get function depending on which div is clicked
- by kalpaitch
Heres the markup:
<div id='0203' class='threadWrapper'>
<div class='littleme'>
I am trying to send the id of a parent div as a parameter in jquery.get function:
$('.littleme').click(function{
var id = $(this).closest("div").attr("id");
$.get("PHP/viewedThread.php", {viewedURLID: id});
});
and am getting rather lost I'm afraid.