check style of element with jquery persistently
<p>i need code like this</p>

<pre><code>if($('#someElement').hasClass('test'))
{
...
}
</code></pre>

<p>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?</p>
