A
A
Anon33632020-04-11 14:27:14
Node.js
Anon3363, 2020-04-11 14:27:14

How to delete an object from localStorage by clicking on the delete button?

5e91a9570cfc8140384329.png

$('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 your question

Ask a Question

731 491 924 answers to any question