I’m working on an ASP.Net webpage which will use the jQuery Dropdown Checklist (http://code.google.com/p/dropdown-check-list/). I’m fairly inexperienced with JavaScript and completely new to jQuery.
Could anyone help me with a JavaScript function that de-selects items from a jQuery DropdownChecklist? It would need to accept a string, then de-select the item that matches that string.
Thanks in advance.
Try changing the original
<select>element so that the item you want to deselect is no longer selected and then refresh the jQuery dropdown-checklist using the “refresh” command. Something like this (whereselectIDis the ID of the original<select>element andtargetStringis the content of the<option>you want to deselect):