<!-- Search results tab -->
Course Results (${courseResponseList.getCourses().size()})
Want to show above div.
jquery script.
jQuery.noConflict();
$("#searchButton").click(function (e) {
e.preventDefault();
var data = [];
$.ajax({
type: "GET",
contentType : "application/json",
url : "/search/getCourseList",
data : $("#courseSearchForm").serialize(),
contentType:"application/json; charset=utf-8",
dataType:"json",
success : function (data) {
var jsobj = JSON.parse(JSON.stringify(data));
console.log(jsobj);
//WHAT SHOULD I DO HERE ?
alert("reached");
},
error : function(e) {
alert("Failed to search....");
}
});
});
I'm getting the courselist from ajax call but I'm not able to display it on same page. Jquery.load(url) will also not work as jsp file is in WEB-INF. So we can't access it through url. Div id="testingClass" is present in the same file.(courseSearchPage.jsp).I want to show this div when I click on search buttom.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)