This is my code :
var data = [];
$("#btn").click(function(){
total++;
data.push({
id : total,
"cell": [
"val1",
"val2",
"val3",
]
});
});
Every time that user clicks on btn
button, I add some values to the data object. Now my question is here that how I can remove the part that has id = X