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

Does not respond to click on checkbox' label #23

Open
AlexeyKosov opened this issue Jan 13, 2015 · 4 comments · May be fixed by #92
Open

Does not respond to click on checkbox' label #23

AlexeyKosov opened this issue Jan 13, 2015 · 4 comments · May be fixed by #92

Comments

@AlexeyKosov
Copy link

It would make sense to change the state when clicking on the label of the checkbox

@aagouda
Copy link

aagouda commented Jan 21, 2015

Yes I also confirm on this request, it is a must to complete the element functionality. It is a great plugin to bootstrap.

@minhur
Copy link
Owner

minhur commented Jan 22, 2015

wrong ticket

@nickpierpoint
Copy link

Has there been any progress with this issue? I see from the examples on the home page that clicking on the label still doesn't trigger a toggle:

<label class="checkbox-inline">
  <input type="checkbox" checked data-toggle="toggle"> First
</label>
<label class="checkbox-inline">
  <input type="checkbox" data-toggle="toggle"> Second
</label>
<label class="checkbox-inline">
  <input type="checkbox" data-toggle="toggle"> Third
</label>

@ollyg
Copy link

ollyg commented Dec 24, 2017

For those using google, this can be achieved using a simple onclick handler, based on the following:

<label>
  <input type="checkbox" name="mycheck" id="id_mycheck" data-toggle="toggle">
  <span onclick="$('#id_mycheck').bootstrapToggle('toggle')">&nbsp;My Check Toggle</span>
</label>

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