<ul id="panelbar"> <li class="k-state-active"> Vendors <ul> <li class="k-state-selected" ><span onclick="SetVendorID(1)">Vendor 1</span></li> <li><span onclick="SetVendorID(1)">Vendor 2</span></li> </ul> </li> </ul>
This selects the first item in the list but only highlights the text not the background of the item like it does when you click on it.
When you click on Vendor 2, Vendor 1 does not deselect the text, it stays white when it should be deselected (black).
Why doesn't this work?