I have a Multi Select List generated by HTML.ListBoxFor. The select element has an id of '#listBox'
I want to add a title attribute to each option tag. The value of the title attribute comes from a Dictionary<string,string>
.
I want to do the following
loop through option element of the selectlist and get the text of the option element
loop through each element of Dictionary
Where dictionary.key == text
add a title attribute with the value of Dictionary.Value.