I have this JQuery code:
$("div.notification").live("click", function(){
window.location=$(this).find("a").attr("href");
var myId = $(this).attr("id");
$.post("/videos/selected_notification.js", myId);
return false;
});
I want to be able to access myId from inside my controller that the post request hits. How do I do this?