02.06.2015 Views

Bootstrap Tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example to demonstrate .button('reset') method<br />

<br />

Primary<br />

<br />

<br />

Example to demonstrate .button(string) method<br />

Click Me<br />

<br />

<br />

$(function () {<br />

$("#myButtons1 .btn").click(function(){<br />

$(this).button('toggle');<br />

});<br />

});<br />

$(function() {<br />

$("#myButtons2 .btn").click(function(){<br />

$(this).button('loading').delay(1000).queue(function() {<br />

});<br />

});<br />

});<br />

$(function() {<br />

$("#myButtons3 .btn").click(function(){<br />

$(this).button('loading').delay(1000).queue(function() {<br />

$(this).button('reset');<br />

});<br />

});<br />

});<br />

$(function() {<br />

$("#myButton4").click(function(){<br />

$(this).button('loading').delay(1000).queue(function() {<br />

$(this).button('complete');<br />

});<br />

});<br />

});<br />

<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!