i want to Post a form value with Jquery $.POST() and load a specific selector i don't know how to do it may be with json or something like that
$.post('topic.php', {
id: id
}, function(data) {
$("#message")
.html($(data).('attr', 'title'))
.hide()
.slideDown(500); //Fade in the data given by the topic.php file
});
return false;
});
i just want to load the title and description not the whole page
i want to retrieve this title and description in a lightbox how can i do it?