sending a variable through jquery.get function depending on which div is clicked

Posted by kalpaitch on Stack Overflow See other posts from Stack Overflow or by kalpaitch
Published on 2010-03-28T03:54:43Z Indexed on 2010/03/28 4:03 UTC
Read the original article Hit count: 276

Filed under:

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.

© Stack Overflow or respective owner

Related posts about jQuery