There is no such thing. Clicked is an event, not a condition. In other words, not that you don't know how to determine if something "is click" or not, the problem is that nothing can be "clicked" or "not clicked". The whole idea is wrong; you cannot try to compare
click
with Boolean value. Moreover, you cannot compare a call to
.click()
to anything. What you can do is adding a handler to it. See the example here:
http://api.jquery.com/click/[
^].
Pay attention to the first sample in the article referenced above. However, I don't know how to explain it fast, considering your great degree of confusion. Basically, the programming paradigm is: you are not calling event handlers, you tell the system what do call when an event happens. Better now? I'm not sure you are ready to get it right now though; a whole detailed article could help…
By the way, the whole idea of comparing anything with
true
or
false
is wrong (showing that you even have no idea of Booleans, comparison and conditional operator, sorry to say so, but for you, it would be the best for you to learn it; understanding events is way more difficult than that). If you have
var value =
then
if (value)
if (value == true) ...
And please, don't ask "what should I do?"; you won't get your code "fixed", because the whole idea makes no sense. If you explain your goal, that might help. Also, look at existing jQuery samples. But better yet, you should first learn very basic programming and JavaScript topics.
—SA