Hi All,

Really appreciate your help!!!
am using jquery and ajax to load the content from server.
but my issue is when i get the response back to the parent jsp, the whole child jsp is loading in parentJsp div element. Instead i want to load only desired childJsp div element in parent jsp.
here is my code

$.ajax({
type:"POST"
url:"childJsp.jsp"
datatype:"html"
data="searchType="+searchType,
success:function(data){
$('#displayDiv').html(data);
},
error:function(XMLHttpRequest, textStatus, errorThrown){
this;
}

can any one please respond to my question?????

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.