title: JQuery select image from gallery based on selected option in dropdown
body: <p>I have image gallery based on <a href="http://sachinchoolur.github.io/lightslider/" rel="nofollow">lightSlider</a> and i trying to make that when I select value from dropdown, image from gallery with same value as my id is displayed (bring to focus): </p>
  
  <p>gallery:</p>
  
  <pre><code> &lt;ul id="image-gallery" class="gallery"&gt;
       &lt;li value="id1" data-thumb="images/72x72.jpg"&gt;
           &lt;img  src="images/340x400.jpg" /&gt; &lt;/li&gt;
       &lt;li value="id2" data-thumb="images/72x72.jpg"&gt;
           &lt;img  src="images/340x400.jpg" /&gt; &lt;/li&gt;
       &lt;li value="id3" data-thumb="images/72x72.jpg"&gt;
           &lt;img src="images/340x400.jpg" /&gt; &lt;/li&gt;
       &lt;li value="id4" data-thumb="images/72x72.jpg"&gt;
           &lt;img  src="images/340x400.jpg" /&gt; &lt;/li&gt;
       &lt;li value="id5" data-thumb="images/72x72.jpg"&gt;
           &lt;img src="images/340x400.jpg" /&gt; &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>and dropdown: </p>
  
  <pre><code>&lt;div class="styled-select"&gt;
  
   &lt;select class="show-labels"&gt;
       &lt;option id="id1" value="1"&gt; 1&lt;/option&gt;
       &lt;option id="id2" value="2"&gt; 2&lt;/option&gt;
       &lt;option id="id3" value="3"&gt; 3&lt;/option&gt;
       &lt;option id="id4" value="4"&gt; 4&lt;/option&gt;
       &lt;option id="id5" value="5"&gt; 5&lt;/option&gt;
   &lt;/select&gt;
  </code></pre>
  
  <p>I dont have idea how to do it. I picked value of id from selected option, but dont know what to do next when I need select (and bring to focus) image with same value, and in other case, change dropdown value to selected item value when i click on image in gallery. </p>
  
  <p>My attempt:</p>
  
  <pre><code>$(function () {
  $('.styled-select').on('change', function () {
      var value = $('.show-labels').children(":selected").attr("id");
     alert(value); /*just for check if it's working*/
  });
  </code></pre>
  
  <p>});</p>