showing results for - "jquery if else on click"
Alisa
12 Sep 2018
1$('#myElementID').click(function() {
2	var isSomethingTrue = true;
3    
4    if(isSomethingTrue){
5    	alert("something is true");
6    }else{
7    	alert("something is false");
8    }
9});