I need something like a if else function in my jquery but I don't know how I have to do that. Or isn't it possible?
if $(".image1").click(function(){
$(idnumbers).css("display", "block");
$(idnumberp).css("display", "none");
$(idnumber).css("display","block");
});
else if $(".image2").click(function(){
$(idnumbers2).css("display", "block");
$(idnumberp).css("display", "none");
$(idnumber).css("display","block");
});
else $(".image3").click(function(){
$(idnumbers3).css("display", "block");
$(idnumberp).css("display", "none");
$(idnumber).css("display","block");
});
iforelseat all. They will only run when the element is clicked.