Please see the code here:
For some reason, it always returns false on the .is(‘:visible’) whether or not it is visible.
Any reason why? Anything I should be doing differently?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use:
spanselectis anid, not aclass.$("#holder span#spanselect")would work just the same, by the way. For the record, you can changedis(":visible")tolengthans saw it was equal to0, and easily see the selector fails.Example: http://jsfiddle.net/kobi/wQpTu/5/