I am wondering how I use Jquery selectors within the Ajax response. My site has a feed and each main block has a unique ID, but I dont want to uniquly ID every div thats wit
Since the ajax is inside the click handler just do this:
$(...).click(function(){ var $this = $(this); //<-- reference variable //ajax function... function(msg){ var container = $this.parent().attr('id'); alert (container); //returns undefined } })