minhur / bootstrap-toggle

Bootstrap Toggle is a highly flexible Bootstrap plugin that converts checkboxes into toggles
http://www.bootstraptoggle.com
MIT License
1.48k stars 440 forks source link

Chaging the text On and Off #194

Closed kirin2 closed 6 years ago

kirin2 commented 6 years ago

I tried to change the text On and Off to Yes and No and the toggle got broken.

The html :

<input class="toggle" type="checkbox" data-toggle="toggle" data-size="small" >

Js :

$('.toggle').bootstrapToggle({
    on: 'Yes',
    off: 'No'
});

image

kirin2 commented 6 years ago

Hmn i put the js on top of the html : )