You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selected can be set to multiple select options even if the select is not multiple if you choose an option more than once.
I think clickedOption.attr('selected', 'selected'); below should be replaced with select.val(clickedOption.val()); so only one option has selected .
if(multiselect){
...
}else{buttonsHtml.find('a, span').removeClass('picked');$(this).addClass('picked');clickedOption.attr('selected','selected');// should be select.val(clickedOption.val());}
The text was updated successfully, but these errors were encountered:
savvan0h
changed the title
<select> without multiple might have multiple selected options
<select> without multiple might have multiple selected options
Nov 12, 2019
selected
can be set to multiple select options even if the select is notmultiple
if you choose an option more than once.I think
clickedOption.attr('selected', 'selected');
below should be replaced withselect.val(clickedOption.val());
so only one option hasselected
.The text was updated successfully, but these errors were encountered: