How to uncheck a checkbox when closing the div that shows what has been checked.?

Asked

Viewed 31 times

0

After I mark the checkbox options, I click on "ok" it brings me the options I marked. giving the option to delete it. But if I delete, the checkbox is still marked.

  • Post the code already made for easy viewing and possible adjustments required.

  • If you are using Jquery, to uncheck a checkbox, you can set the attribute "checked" to false, like this: $('#checkbox').prop('checked', false);. If using pure Javascript, use document.getElementById("checkbox").checked = false;

  • Renato, in case it would be a list, if I remove only 1 it should only uncheck the checkbox related to the one I removed from the list, keeping the others.

  • Put your code in the question, for ease.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.