I am sending data using jquery ajax as follow to a servlet
var dataString = 'messageid='+ msgid1+'&receivedById='+receiverid;
$.ajax({
type: "POST",
url: "fetchSharePage",
dataType: "text html",
data: dataString,
success: function(data) {
$(".sharePost").html(data);
}
});
Here it is showing all data as data
to <div class="sharePost">
.
Here I want to show only
variable
status
and addActionMessage("Done this");
value in <div class="sharePost">
containd in data