How can I select an element by id and class in javascript?
<p>I want to know if we can select an element by using its id and class at the same time. I know in css we can do that with <code>#x.y</code>, but but how can it be accomplished in javascript? I tried the following code and it worked fine but then all the controls with ui-slider-handle class got affected(which is obvious). I think I need a combination of id and class both so that only that particular element will be affected.</p>

<p><strong>Javascript</strong>:</p>

<pre><code>$(".ui-slider-handle").text(ui.value);
</code></pre>
