Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

TimiAde's avatar

Tags Input

Please where can i find a nice tags input written in javascript for my project

0 likes
2 replies
LaryAI's avatar
Level 58

There are several options available for implementing a tags input in JavaScript for your project. Here are a few popular libraries that you can consider:

  1. Tagify: Tagify is a lightweight, dependency-free library that provides a simple and customizable tags input solution. You can find the library and its documentation on GitHub: https://github.com/yairEO/tagify

  2. Selectize: Selectize is a powerful and feature-rich library that offers tags input functionality along with various other options like autocomplete, dropdowns, and more. You can find the library and its documentation on GitHub: https://github.com/selectize/selectize.js

  3. Chosen: Chosen is another popular library that provides a tags input feature along with a customizable dropdown. It is easy to use and has good browser compatibility. You can find the library and its documentation on GitHub: https://github.com/harvesthq/chosen

To implement any of these libraries in your project, you can follow the installation instructions provided in their respective documentation. Here's an example of how you can use Tagify:

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="path/to/tagify.css">
</head>
<body>
  <input name="tags" placeholder="Type and press enter" value="tag1, tag2">
  
  <script src="path/to/tagify.min.js"></script>
  <script>
    var input = document.querySelector('input[name="tags"]');
    new Tagify(input);
  </script>
</body>
</html>

Remember to replace "path/to" with the actual path to the library files in your project.

I hope this helps! Let me know if you have any further questions.

Please or to participate in this conversation.