Category: JavaScript

  • How To Add and Remove Tabs in Bootstrap 3 Dynamically?

    How To Add and Remove Tabs in Bootstrap 3 Dynamically?

    The code is compatible with Bootable 3.x Earlier today, I was working on a web application with Bootstrap and I was required to allow a user to add and remove tabs. Unfortunately Bootstrap doesn’t give you the close button on a tab out-of-the-box. So I quickly went to the Bootstrap’s Issues page on GitHub where […]

  • jQuery – Prevent Multiple AJAX Requests

    jQuery – Prevent Multiple AJAX Requests

    Many times we do not want to take any other requests of the same type while one is still in progress. A normal post request looks something like: Suppose, if we call the function using a link, <a href=”javascript:doSignup()”>Signup</a> Someone does repeated clicks and an enormous amount of requests will be off their way to […]

  • Customized jQuery UI Autocomplete Widget: List Items with description

    Customized jQuery UI Autocomplete Widget: List Items with description

    jQuery has made DOM parsing & manipulation easy for every developer out there. jQuery has provided a range of rich set of UI controls. My focus will be on how to customize the jQuery UI Autocomplete (version 1.8.15) widget item list according to our needs. Our requirement for the customized item list were: Each Drop-down […]