jquery: adding class to <a> or <li> from value
<p>I would like to add a class to each <code>&lt;a&gt;</code> or <code>&lt;li&gt;</code> that is the same value as <code>$(this).val()</code> in the code.  </p>

<pre><code>  options.each(function(){
     $("#target dd ul").append('&lt;li&gt;&lt;a href="#"&gt;' +
       $(this).text() + '&lt;span class="value"&gt;' +
       $(this).val() + '&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;');
  });
</code></pre>

<p>I am thankful for any hints!</p>
