mardi 14 février 2017

How can I do an .addEventListener in another way or clear the file?

I have been working on this project and I'm stuck. If the user doesn't select one of the Buttons There is a message:"U heeft nog geen categorie geselecteerd", but then if te user tries again with the same picture it doesn't check again because it doesn't trigger the .addEventlistener, is there another way of doing the .addEventListener or to clear the file everytime the user didn't clicked on one of the buttons?

Thanks

fileButton.addEventListener('change', function(e) {
if(hannibalus == "Hannibalus"){
minions.innerHTML = "U heeft nog geen categorie geselecteerd"
}else{

Aucun commentaire:

Enregistrer un commentaire