I have the below code for show/hide success div as per the service call\'s response plus i need to pass the Service Response\'s request to the Success Div
. How do i
When you are getting response msg you can use it as you want in your html. You can modify response message as you want, so use .html() in your javascript code to manipulate your response msg. Your response for example can be "Success, great, foo foo foo!" or "Error, foo foo foo!". Use ajax request as function to show response, generate response message in your req page.
jsFiddle
HTML:
JS:
$.ajax({
url:
type:
data:
success: function(msg){
$("#showResponseArea span").html(msg); //you will paste your response msg to the span
}
error: funciton(msg){
alert("Some Error Occured");
}
});