Auto complete in text area with jQuery aSuggest

jQuery.asuggest is a small light weight plugin that can be used to implement auto-complete with textareas. This plugin requires the following two js

jQuery.asuggest can be downloaded from here or from its GitHub page. Lets quickly dive into an example :

Html : (jsFiddle link)

<textarea rows="10" cols="55" id="comment"></textarea>

Jquery : (jsFiddle link)

$(document).ready(function(){

    var suggests = ["hello", "android", "world", "is", "all", "over", "under"];
    $("#comment").asuggest(suggests);    

});

Output : http://jsfiddle.net/yrshaikh/JbYdx/embedded/result/
jquery asuggest output

More examples

About Yasser Shaikh

Hello, I am a Web Dev, employed with Media.Net where I primarily work on ASP.NET MVC and Angular JS based developement.

Questions? Enquiries? Comments? Or even just want to say “Hi” to me, you are welcome to all of that. Just drop me a message at “mail@yassershaikh.com” and I’ll get back to you as soon as possible.

Cheers !

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>