I'm using the jquery multiselect control from: http://abeautifulsite.net/notebook/62
I need to manually check one of the options via javascript on a specific event.
Whenever I try to change the checked attribute, or trigger a click, call the click function explicitely etc., I the checkbox gets checked but the CSS is never changed and the textbox is never refreshed with the currently selected element(s).
Example: If I want to select the checkbox with the 'TRA' value with javascript code and make sure it behaves properly, how can I achieve this?
<input class="multiSelect" type="text" style="cursor: default;" value="" readonly="readonly"/>
<div class="multiSelectOptions" style="position: absolute; z-index: 99999; display: none;">
<label class="selectAll">
<input class="selectAll" type="checkbox"/>
(All)
</label>
<label>
<input type="checkbox" value="ADP" name="Attributes"/>
Adaptation
</label>
<label>
<input type="checkbox" value="TRA" name="Attributes"/>
Translation
</label>
</div>