Skip to content

Events not working #6

@kushal-g

Description

@kushal-g

I've been trying to attach a .change() listener to switchbutton but I'm not able to do so. On trying out the documentation, I found that even the example code doesn't seem to be working.

<input id="switch-event" type="checkbox" data-toggle="switchbutton">
<div id="console-event"></div>
<script>
  $(function() {
    $('#switch-event').change(function() {
      $('#console-event').html('Checked?: ' + $(this).prop('checked'))
    })
  })
</script>

Neither is it working on my project, nor on the official website for this repo
Bootstrap Switch Button

Are there going to be any fixes in the foreseeable future?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions