jquery - Select Unselect multiple select fields -
i have multiple select fields following:
<select class="projects" id="projects" multiple="multiple" name="projects[]" size="10"> <option value="1">project 1</option> <option value="2">project 2</option> <option value="3">project 3</option> </select>
i have feature after user selected, if user click somewhere else, selected options going "unselected", how implement feature in jquery?
try using .focus() or .focusin()/.focusout(), respectively. http://api.jquery.com/?s=focus
Comments
Post a Comment