user3191137
user3191137

Reputation: 135

jQuery/js - Clearing multiselect selections on button click

How can I remove the dropdown selections after my function stores into local storage. Please see my fiddle: http://jsfiddle.net/3u7Xj/139/

I already have this for the other elements:

 var $form = $("#formID");

 $form.find('input:text, input:password, input:file, select, textarea').val('');
 $form.find('input:radio, input:checkbox')
    .removeAttr('checked').removeAttr('selected');

Upvotes: 0

Views: 31

Answers (1)

noel
noel

Reputation: 2145

Add:

$form.find(".multiselect").multiselect('uncheckAll');

I updated your fiddle: http://jsfiddle.net/3u7Xj/140/

Upvotes: 1

Related Questions