I\'m trying to update an external object by clicking on the edit button. It brings up a pop-up, wherein I can enter the new information and it should then update the user accord
Alright, I found the problem. It was the variable index which I was using. It was being over-ridden I believe on trying submitting the form, which was causing the problem.
var myData = [{
company: "ABC",
url: "www.abc.com",
type: "internal"
}, {
company: "CDE",
url: "www.cde.com",
type: "internal"
}, {
company: "DEF",
url: "www.def.com",
type: "external"
}, {
company: "EFG",
url: "www.efg.com",
type: "internal"
}, {
company: "FGH",
url: "www.fgh.com",
type: "external"
}];
$('#createData').click(function() {
createDisplay();
});
function createDisplay() {
$('.container').empty();
myData.forEach(function(obj) {
$('.container').append(
$('').addClass('box').append(
$('