Skip to content

Commit 028b058

Browse files
committed
Fix for Issue #4
1 parent a3a2bea commit 028b058

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ EX: Initialize id `chkSwitch` with a single line of JavaScript.
6767

6868
## Options
6969
* Options can be passed via data attributes or JavaScript
70-
* For data attributes, append the option name to `data-` (ex: `data-on="Enabled"`)
70+
* For data attributes, append the option name to `data-` (ex: `data-onlabel="Enabled"`)
7171

7272
```html
73-
<input type="checkbox" data-toggle="switchbutton" data-on="Enabled" data-off="Disabled">
73+
<input type="checkbox" data-toggle="switchbutton" data-onlabel="Enabled" data-offlabel="Disabled">
7474
<input type="checkbox" id="switch-two">
7575
<script>
7676
$(function() {
7777
$('#switch-two').switchButton({
78-
on: 'Enabled',
79-
off: 'Disabled'
78+
onlabel: 'Enabled',
79+
offlabel: 'Disabled'
8080
});
8181
})
8282
</script>

0 commit comments

Comments
 (0)