Categories
How to delete an object from localStorage by clicking on the delete button?
$('button').click(function(){ let x = $(this).attr("id") cars.forEach(function(item){ if(item.id == x) console.log(true) }) })
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question