Reputation: 4814
i am trying two send two values to new page i am new to jquery how can i concatinate them:
The Error is in location line ('')
here my ajax code:
success: function (response) {
if(response["success"]==true)
{
$("#showMessage").html(response['message']);
location = '/learningcurve/gdpi.php?jobid=='+response["id"]'&jobname=='+response["jobname"];
window.open(location);
Upvotes: 1
Views: 36
Reputation: 898
try this one
success: function (response) {
if(response["success"]==true)
{
$("#showMessage").html(response['message']);
location = "/learningcurve/gdpi.php?jobid="+response["id"]+"&jobname="+response["jobname"];
window.open(location);
Upvotes: 1