jQuery #hashtags

This jQuery plugin allows it to automatically highlight hashtags in textareas like those on facebook.

View project onGitHub

Demo

Here is a demo of jQuery #hashtags.

Type in something with #hashtags to see the magic!

How to use jQuery #hashtags

If you want to use this jQuery plugin, simply add those lines to the <head> part of your website:

 <script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
 <script src="js/jquery.autosize.js" type="text/javascript"></script>
 <script src="js/jquery.hashtags.js" type="text/javascript"></script>`

Warning: Do not include js/jquery-1.10.2.min.js if you already included jQuery to your website!

After including the neccessary files, you can simply add jQuery #hashtags to an existing <textarea> by using this code (inside an appropriate <script>-element):

 $(document).ready(function() {
    $("textarea").hashtags();
 });

Support or Contact

Having trouble with jQuery #hashtags? Visit our forums at http://board.thurnax.com or write an eMail at admin[at]thurnax.com