I have knock out section Below
<select>
<option value="0|-1">All</option>
<optgroup data-bind="repeat: { foreach : ViewModel.availableLists, bind : 'attr: { label : $item().ProjectName }, foreach : $item().Lists' }">
<option data-bind="text : ListName" />
</optgroup>
</select>
But I want to convert this select drop down to Ul and Li, i am failing to convert this to ul and li. How can i do that?
Each optgroup should be rendered as an li with css class "project-name". Under each project-name Each option should be rendered as an li with css class "list-name".