if else for click 1 and click 2 code example
Example: jquery if else on click
$('#myElementID').click(function() {
var isSomethingTrue = true;
if(isSomethingTrue){
alert("something is true");
}else{
alert("something is false");
}
});