I am using Bootstrap Switch for Twitter Bootstrap. Here I have problem to check or uncheck all checkbox based on global checkbox checked or unchecked
Here is the boo
Try this one, it should work. Also see this jsfiddle...http://jsfiddle.net/URAcy/5/
JS:
$('#rowSelectAll').on('switch-change', function (e, data) { var $el = $(data.el) , value = data.value; $('.toggle-state-switch').each(function( index ) { $(this).bootstrapSwitch('setState' , value); }); });