I'd like to do this:"if this condition is met, then do the following multiple actions." My code works fine only for one thin.
if (ui.value > 2067) {
$(".bee-homosapiens").attr("src", "images/portfolio/portfolio_3.png");
$(".bee-nohomosapiens").attr("src", "images/portfolio/portfolio_4.png");
} else {
$(".bee-homosapiens").attr("src", "images/portfolio/portfolio_2_1.png");
$(".bee-nohomosapiens").attr("src", "images/portfolio/portfolio_1.png");
}
Aucun commentaire:
Enregistrer un commentaire