How to add class to list depends on text?
<p>In some page, my side menu is created dynamically like this.</p>

<pre><code>&lt;div id="tree" class="treeview"&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="Salg.asp" title="" class=""&gt;Salg&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="Retur.asp" title="" class=""&gt;Retur&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="Support.asp" title="" class="active"&gt;Support&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="konomi.asp" title="" class=""&gt;Økonomi&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;!-- end of tree treeview --&gt;
</code></pre>

<p>In other page all the list have different text such as product categories etc.</p>

<p>Now I need to add padding to li in the menu where list texts are Salg, Retur, Support, and Økonomi. </p>

<p>This means I need to add a class "listpad" to li where the texts are Salg, Retur, Support, and Økonomi.</p>

<p>Could anyone tell me how to do this please?</p>

<p>Thanks in advance.</p>
