How could I make the call to multiSelect('deselect_all')
or multiSelect('select_all')
Do not enter the jquery.validate
?
A small example, in a list inside the container with id="reason" eg:
<select multiple="multiple" id="motivo">
<div class="ms-selectable"><ul class="ms-list" tabindex="-1"><li class="ms-
optgroup-container" id="optgroup-selectable-762866512">
<ul class="ms-optgroup">
<li class="ms-optgroup-label"><span> 1 - Capacidad visual</span></li>
<li class="ms-elem-selectable" id="36598990-selectable"><span> 1. 1 -
Agudeza visual</span></li>
<li class="ms-elem-selectable" id="36598991-selectable"><span> 1. 2 - Campo
visual</span></li>
<li selected="selected" class="ms-elem-selectable ms-selected" id="36598992-
selectable" style="display: none;"><span> 1. 3 - Afaquias y
pseudoafaquias</span></li></ul></div>
Then we have a button that executes the multiSelect
:
$('#motivo').multiSelect('select_all');
When the% multiSelect
is executed,% co_spears after the Jquery.Multi-Select.js