i need code like this
if($('#someElement').hasClass('test'))
{
...
}
but i need to check it persistently not in a specific position.
my question is function like bind can help me or i have to use interval for checking?
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.
If you want to check like all the time. You will need to use an interval. A bind can only be used to bind events. Like
click,mouseenter, etc.If you want to know when an element gains a class. You should use something like: