bootstrap-switch
bootstrap-switch copied to clipboard
Getting started needs an update???
We followed the "getting started" and found that the width calculations weren't working too well. Then we discovered that the code really needs to run after the document is ready:
$(function () { $("[name=\'modeswitch\']").bootstrapSwitch(); });
So perhaps the "getting started" section could be updated.
This is not necessarily the functionality desired by all users. Switch initialization may be bound to other events than $(document).ready();