How to use Bootstrap Tags input jQuery plugin with example

How to use Bootstrap Tags input jQuery plugin with example

In this tutorial, I will let you know how to use bootstrap tagmanager jquery plugin with example.

Using tags, you can organize content on your website and you can have multiple instances of bootstrap tagmanager on a single page.

There are several plugin available with bootstrap with nice layouts like bootstrap form validation, bootstrap lightbox, bootstrap colorpicker, bootstrap datepicker etc.

You can use the bootstrap alert class to create colored tag boxes like tm-input-info, tm-input-warning, tm-input-danger.

For this example, you will need following library :

  1. bootstrap.min.css
  2. bootstrap.min.js
  3. jquery.min.js
  4. tagmanager.min.css
  5. tagmanager.min.js

After this example, you can click the button "Show Demo" to see how bootstrap tagmanager is working with input elements.

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>How to use Bootstrap Tags input jQuery plugin with example</title>
  5.     <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  6.     <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/tagmanager/3.0.2/tagmanager.min.css">
  7.     <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  8.     <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  9.     <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tagmanager/3.0.2/tagmanager.min.js"></script>
  10. </head>
  11. <body>
  12.     <form>
  13. <div class="row">
  14. <div class="col-xs-12 col-sm-12 col-md-12">
  15. <div class="form-group">
  16. <strong>Content:</strong>
  17. <textarea class="form-control"></textarea>
  18. </div>
  19. </div>
  20. <div class="col-xs-12 col-sm-12 col-md-12">
  21. <div class="form-group">
  22. <strong>Tag:</strong>
  23. <input type="text" name="tags" placeholder="Tags" class="form-control tm-input tm-input-info"/>
  24. </div>
  25. </div>
  26. <div class="col-xs-12 col-sm-12 col-md-12 text-center">
  27. <button type="submit" class="btn btn-primary">Submit</button>
  28. </div>
  29. </div>
  30.     </form>
  31.     <script type="text/javascript">
  32.         $(".tm-input").tagsManager();
  33.     </script>
  34. </body>
  35. </html>

PHP Bootstrap - dynamic autocomplete tag input using jquery plugin

Phone: (+91) 8800417876
Noida, 201301
sakarya escort akyazı escort arifiye escort erenler escort eve gelen escort ferizli escort geyve escort hendek escort otele gelen escort sapanca escort söğütlü escort taraklı escort
escort bayan escort bayan escort bayan escort bayan escort bayan escort bayan escort bayan sakarya escort sakarya escort sakarya escort sakarya escort sakarya escort sakarya escort sakarya escort adapazarı escort adapazarı escort adapazarı escort adapazarı escort adapazarı escort adapazarı escort adapazarı escort serdivan escort serdivan escort serdivan escort serdivan escort serdivan escort serdivan escort serdivan escort sakarya escort bayan sakarya escort bayan sakarya escort bayan sakarya escort bayan sakarya escort bayan sakarya escort bayan sakarya escort bayan escort sakarya escort sakarya escort sakarya escort sakarya escort sakarya escort sakarya escort sakarya serdivan escort sapanca escort karasu escort hendek escort izmir escort