I am trying to use bootstrap switch with below code in html,
<input type="checkbox" id="queue_status" checked class="make-switch" data-size="small" data-off-text="Disable" data-on-text="Enable" checked data-on-color="success" data-off-color="warning">
But this returns either 'true' or 'false' as value,
How can we get custom value as selection? Like Enable or Disable with switch selection as above?
You can tune bootstrap-switch plugin(I used v3.3.2) for your purposes by making little changes (attention - it may cause side effects):
FROM:
TO:
IMPLEMENTATION: