You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used bootstrap-switch for display checkbox on/off
It is working when I have switched on or off but when I have get value from database and I assigned value checked on input checked box then it is not display on.
<script>
$("[name ='approved']").bootstrapSwitch();
// I have set value in database when checkbox on/off
$(document).ready(() => {
$("[name ='approved']").on("switchChange.bootstrapSwitch", function (e, data) {
});
});
</script>
The text was updated successfully, but these errors were encountered:
JigneshPatel04
changed the title
bootstrap switch check box is not working when I have true value
bootstrap switch check box is not display ON when I have refreshed the page with value TRUE
Jul 15, 2019
I have used bootstrap-switch for display checkbox on/off
It is working when I have switched on or off but when I have get value from database and I assigned value checked on input checked box then it is not display on.
checkbox
<script> $("[name ='approved']").bootstrapSwitch(); // I have set value in database when checkbox on/off $(document).ready(() => { $("[name ='approved']").on("switchChange.bootstrapSwitch", function (e, data) { }); }); </script><input data-id="{{id}}" type="checkbox" {{#if approved}} checked {{/if}} name="approved">
The text was updated successfully, but these errors were encountered: