I'm using jquery AJAX to instant save things, however when an ID already exists it will give a hidden element with data in it. Which is already given as the 'right' syntax for $.ajax
data.
I'm returning something like this:
{'km' : '43223432', 'id' : '2', 'date' : '15-01-2014'}
All values can be different ofcourse.
However; if this is returned, the user can click on a button to 'overwrite' the data. Data is stored in: $(".errorLogContent")
var text = $(".errorLogContent").text();
$.ajax({
type: "POST",
url: "../uitvoer/overschijf.php",
data: text
});
Why isn't this working?