samedi 23 janvier 2016

jQuery if statement code not working

I cant understand why my code is not working

$(document).ready(function() {
  $(".screen2").hide();
});
if ($("#enter").click(function() && ($pin == 1234)) {
    $(".screen1").hide();
    $(".screen2").show();
  });
});

Aucun commentaire:

Enregistrer un commentaire