I have problem with IF statement. It doesn't execute even through condition in brackets is TRUE.
<script>
alert(occ);
if(occ == "true"){
document.getElementById(occ).innerHTML = "Already registered";
alert("done");
}
</script>
Function alert(occ); does work: Web screenshot
Aucun commentaire:
Enregistrer un commentaire