var isClicked = false;
$("a[href='#tabs-1']").off("click").on("click",function(){
alert("tab 1 is click");
isClicked = true; // dont want to use like this.
});
I have this code when tab is click. My problem is how can i code like this to check tab is clicked? i have this code snippet in mine.
if(#tabs-1' is clicked){ // do this}
Can someone point me out for solution. Also i do plan that having a boolean variable might help but im looking for jquery code to solve this(if there is).
see this FIDDLE for demo.