[SOLVED] .live() attributes
I am having an issue with retrieving the attribute of an element that I have ajax'ed into my site, the following is the code that brings it in:
- $('a[rel=newpoint]').live('click', function() {
jQuery.facebox(function(){
jQuery.ajax({
type: "POST",
data: "city=" + jQuery("a[rel=newpoint]").attr("href"),
url: "scripts/postforum.php",
success: function (data) {
jQuery.facebox(data);
}
});
});
The problem is that jQuery("a[rel=newpoint]").attr("href") never returns any value.
How do i get the value of the href that I ajax into my site?
Thanks for any help you can provide!