title: Check mark/ tick mark in javascript for the selected drop-down options onclick show active tickmar
body: <p>When I click the selected drop-down options. The selected option should active and tickmark shows at right side of the text.for example I have ten options in my selected drop-down It should active and shows the tick mark when I select each option. Tick mark should remain same for executing  options.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="submenu1" class="p3 sample-submenu"&gt;
    &lt;select id="sample" class="form-control" id="select sample"&gt;
      &lt;option value="" disabled selected sample&gt; select sample:&lt;/option&gt;
      &lt;option value="tv"&gt;tv&lt;/option&gt;
      &lt;option value="tv"&gt;iphone&lt;/option&gt;
      &lt;option value="tv"&gt;laptop&lt;/option&gt;
      &lt;option value="tv"&gt;desktop&lt;/option&gt;
    &lt;/select&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>