When i click a button jquery has to get some content and has to call an URL salesplanvalidation.jsp with a parameter salespersonid
The code i used is as follows,
$("#submit").click(function(){
var spid=$('#heading').text();
alert('salesplanvalidation.jsp?salespersonid='+spid);
});
I specified the url in alert message that i want to call. If i use window.open() method it is loading into another tab instead of same page and can i get salespersonid value
as request.getParameter(“salespersonid”); in salespersonvalidation.jsp page?? or any other way to follow??
From what I understand, you want to send and get some data from a server page. For that, you need ajax :