was doing some javascript. I have a list that people can add but when the list is checked i want to delete it. So when is not check i don't have to delete it.
function ClearList(){
if(checkBox.checked){
bodyTask.innerHTML = "";
}
}
But doing this it deletes me everything.
I was trying to do some for-loops but didn't work.
Aucun commentaire:
Enregistrer un commentaire