Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clear previously selected checkbox values in bootstrap multiselect list box #378

Closed
ajayvaineela opened this issue Sep 9, 2014 · 3 comments
Labels

Comments

@ajayvaineela
Copy link

Hi,
I am using bootstrap multiselect js for one of my requriement. It is working fine loading list box options , displaying seleted 3 options everything fine,But on the same page i have one radiobutton option. When user selects that radiobutton already selected bootstrapmulti selection will uncheck all the options and that above text what it is showing the selcted options also need to be clear and it should show nonselected. But for me i am able to unchek all previous selected listbox options, but that above text is not able to clear, still it shows the selected option names, this is my code,
$("#worldid").click(function() // radiobutton id
{
$(".multiselectboxclass").prop("checked",false); // added one class and unchekcing successfully
$("#listboxA").html('Select States ');
});

"listboxA" is the id of the div where multiselect options will load.

But here after check the radio button "nonselected" is displaying, but no listbox options or chekboxes.Every thing disappear , please help me in this regard.

Thanks in advance

@davidstutz davidstutz added the bug label Oct 11, 2014
@davidstutz
Copy link
Owner

OK, this should definitely not happen - the multiselect should not be influenced (or influence) other form elements. Will check this.

@davidstutz
Copy link
Owner

I am sorry, however, I cannot reproduce the error. Nevertheless I include an example with the next commit.

@omar-faruk-sust
Copy link

i am also facing the same problem, anyone can help how can i clear the previously selected cehckbox in form reset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants