I need to change label of toggle button with data-on and data-off style. How can I do it? My toggle create as under html.
Sending OnSending OffI've created button as under js code:
$("#allOnOff").bootstrapToggle({
on : "Sending On",
off : "Sending Off",
onstyle : "success",
offstyle : "danger"
});
And I need to change it as under:
$("#allOnOff").bootstrapToggle({
on : "Custom",
off : "Sending Off",
onstyle : "warning",
offstyle : "danger"
});
But it's not make any changes. Please help.