Bootstrap loading effects in button

It is nice to show loading behavior to user and let user no something is happening which take some time and avoid touching UI. In bootstrap it is very simply task. I think it might help you $(this).button(‘loading’) shows loading text in button. we tell this to bootstrap by using data-loading-text=”Loading…”  When finishing our long runing logic we can call $(this).button(‘reset’); This will bring button to original state.

Bind javascript array or object to html drop down in Jquery

So when we are in developing we have to populate dropdown box with javascript objects. Some times we have to write more dirty codes to do that. I am using following Jquery function to populate dropdown box with javascript array or object. So if we want to bind following array to drop downbox simply we can add html attribute as below and call the above function <select id=”test”></select>  Now it will be populated. More over we can bind list of following object Further we can provide whether to show default “–None–” or set selected index using ending two parameters in function. Just only pass true or false.