i just got the code from the following link
Getting Started with IndexedDB
While running the delete function it doesn't throw an error..but still delete Function didn't work
while the remaining functions ADD,PRINT works,
Also updates in the IDB, but DELETE doesn't work
For reference check the url mentioned above..
Please figure it out,
Thanks in advance
Getting Started with IndexedDB
While running the delete function it doesn't throw an error..but still delete Function didn't work
Code:
btnDelete.addEventListener("click", function () {
var id = document.getElementById('txtID');
var transaction = db.transaction(['people'], 'readwrite');
var objectStore = transaction.objectStore('people');
var request = objectStore.delete(id);
request.onsuccess = function (evt) {
};
});
while the remaining functions ADD,PRINT works,
Also updates in the IDB, but DELETE doesn't work
For reference check the url mentioned above..
Please figure it out,
Thanks in advance
Comment