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="">
  6.     <link rel="stylesheet" type="text/css" href="">
  7.     <script type="text/javascript" src=""></script>
  8.     <script type="text/javascript" src=""></script>
  9.     <script type="text/javascript" src=""></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 sakarya escort sakarya escort sakarya escort serdivan escort izmir escort eporner
akyazı escort sakarya escort ferizli escort sakarya escort geyve escort sakarya escort hendek escort sakarya escort karasu escort sakarya escort sapanca escort serdivan escort webmaster forum ankara travesti