Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

bootstrap switch on change

$("#switch").bootstrapSwitch({
  	state: true, //setting switch current state/value
  	onSwitchChange: function(e, state) { 
    	console.log(state);
  	}
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bootstrap #switch #change
ADD COMMENT
Topic
Name
9+3 =