Why do for loop executes before Jquery Selector in this code?
<p>In the code below the <code>for</code> loop executes always first, the jQuery selector comes later. But I want to run this for loop after changing the value of the selected sliders.</p>

<pre><code>$('div[name="FirstSliderselector"]').slider('value', $("#MasterSlider").slider("value"));
var FirstSliders = $('div[name="FirstSliderselector"]');
for (var i = 0; i &lt; FirstSliders.length; i++) {
     console.log('for loop executed');
}
</code></pre>
