mardi 12 février 2019

Statement not firing inside of if statement

I have an if statement but only the 1st of 3 statements inside of the statement is firing.

I used jQuery to hide everything, and then to slide down 1 element. And then change html's background color to black, but it only hides everything.

Statement:

if (ccg == 1000) {           
    $("*").hide(); //RUNS :)
    $("#winner").slideDown(1000); //DOES NOT RUN :(
    $("html").css("background-color", "black"); //DOES NOT RUN :(            
}

I want all 3 of the statements to run.

Aucun commentaire:

Enregistrer un commentaire