I'm trying to use ajax to send back a string var from ProParty.php
and load it into the tag ID "PartyTitle"
. However I'm getting this error:
Uncaught SyntaxError: Unexpected identifier
On this line: context: document.getElementById("PartyTitle").innerHTML
Here is the ajax that loads with the body of the document:
$.ajax({
url: "ProParty.php",
data: { Action: "Load", loadWhat : "PartyName" , PartyId: "1" },
type: "GET",
context: document.getElementById("PartyTitle").innerHTML
}).done(function() {
});
Here is the HTML tag that I want to edit/fill.
<h2><p id= "PartyTitle"> Editing Your Party </h2>