Kind of counterintuitive, but the click event happens after the bootstrap stuff... Anyways:
http://jsfiddle.net/jrob/wuCHd/2/ On Tuesday, May 8, 2012 9:20:39 AM UTC-7, GARA ALI Ahmed wrote: > > Hi, > I have a problem with "Single toggle Buttons". > how to display the status of the buttons with java script ? > I like that when you click on the button a message appears (Alert). 1 if the > state is active. 0 otherwise > > <script type="text/javascript"> >> $(function() { >> $(".subcr").click(function() >> { >> //// Do Something >> }); >> }); >> </script> >> > <a href="#" class="subcr btn btn-success" data-toggle="button"><i >> class="icon-ok icon-white"></i> Button </a> >> > > Thank you :) > > >
