Twitter bootstrap loading button

Guys,

Have problem with loading button in twitter bootstrap??

Is the below image is not working for you? then you are in right post 😉

18-02-2014 17-49-48

 

The basic problem is..we need to declare that button in script. Thats it. Anyways follow the steps to implement properly..

1. Add this <script src=”js/button.js”/></script> in head tag

2.Copy <button type=”submit” id=”formsubmit” data-loading-text=”Searching…”>Submit</button>  in body tag

3. Add this script

<script>
$(‘#formsubmit’).button();

$(‘#formsubmit’).click(function() {
$(this).button(‘loading’);
});

</script>

4. Now run 😀

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s