Bootstrap-multiselect: Removing default selected for radio buttons

Created on 11 Jul 2013  ·  13Comments  ·  Source: davidstutz/bootstrap-multiselect

Am using bootstrap-multiselect with radio buttons and option group instead of checkboxes as I want the user to select only one option. The script works great but the first option in the dropdown is always selected, this happens only when using radio buttons, is there a way to disable this?

question

Most helpful comment

Thanks for this... was searching a solution way to long - maybe this should be mentioned in the docs?

Edit: Found it now in the docs ...

$('select').val('').multiselect(); works fine now! 👍

All 13 comments

Ok, I thought its the default behaviour of most browsers, but I was wrong, so I had a quick look, but could not find the source - the radio is not explicitly markes as checked by the plugin...

I think it IS the default behavior for the browsers.
Think about it, if you display a