Open tianxuzhang opened 8 years ago
i find the reason. this example depends on highlight and main. but why don't you mention it!!!
I'm not certain what you mean by highlight and main, but I think you're problem is that you call the script
first, then drop in the input
. The input
doesn't exist at the time the script
is parsed so nothing happens. Switch the input
and script
, putting the input
before the script
and everything should work.
I actually can't get it to run either, and I have the script under the checkbox. I think it has to do with me not knowing exactly where everything is supposed to go. I downloaded the files, put the folder in with my web page, and nothing. I just get a regular check box... no switch.
the example in https://github.com/nostalgiaz/bootstrap-switch/ can't run
could you help me?