This question has been answered by iusemodx. See the first response.
<ul> <li><a href="..." class="[[*myTV:is=`Opt1`:then=`Option1Class`]]">Menu item1</a></li> <li><a href="..." class="[[*myTV:is=`Opt2`:then=`Option2Class`]]">Menu item2</a></li> <li><a href="..." class="[[*myTV:is=`Opt3`:then=`Option3Class`]]">Menu item3</a></li> </ul>
class=""
<li><a href="..." [[*myTV:is=`Opt1`:then=`class="opt1class"`]]>Menu 1</a></li>
<ul> <li><a href="..." class="[[*myTV]]Class">Menu item1</a></li> </ul>
It would be easier to just assign the same class as the TV value.
<ul> <li><a href="..." class="[[*myTV]]Class">Menu item1</a></li> </ul>
The TV could be set to Option1, Option2, Option3 via a drop down. I'd also make sure the TV is required for the Resource to be saved.
class="myclass"
class="[*status*]"
class=""
<li[+wf.id+][+wf.classes+]><a class="[*status*]" href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li> OR <li class="[*status*]"><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li>
[[Wayfinder? &startId=`0` &rowTpl=`myrowtpl`]]
[[Wayfinder? &startId=`0` &sortBy=`status` &sortOrder=`ASC`]]
<a href="url" title="title" class="">Text</a>