I’m new to JQuery
In my App, I have some 5 divs. While clicking any one of the div, I want to check whether any other divs have been clicked before
Actually in my code I have
Text
Textarea
Dropdown
while clicking on Text/textarea/dropdown for the first time (i.e. I need to check whether any of the others including its own has been clicked before) so that I can proceed based on that.
Even if I use what you said having a variable=1 there arose an issue that while clicking on any of text/textarea/dropdown, I want to check whether the one I’m clicking and the others have clicked before.
Just track it in a variable. The example assumes that “clicked” is defined something (a closure that generates the event handler function would be good) and initilised to a value of “0” or other non-true value.