$.get($(this).attr('id'), function(data){
var qp_post = $(data).filter('title');
alert(qp_post);
});
This fetches the content fine however the alert just says
[object Object]
When I do alert(data); it shows the HTML of the page perfectly.
Yes, that is how jquery works. Are you looking for alert( qp_post.html() ); ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With