Quantcast
Channel: The Web logix Blog » Forms
Viewing all articles
Browse latest Browse all 10

Simple Auto-Complete For Forms

$
0
0

Form auto-completing feature is seen on many websites like Gmail, Yahoo and more.

Auto-completing makes inputting experience easier & faster for the user. On the other hand it is very helpful for the standardization of content, keywords, tags, etc. It may prevent a user wrongly writing Mcrsoft rather than Microsoft for example.

Form Auto Complete

Auto Complete Control is a javascript script which offers a simple to use solution.

It is not an Ajax, dynamic-keywords script. The keywords which will be shown while filling the form are defined staticly.

Auto Complete Control has some nice features like defining “delimiters” which makes it easier to use for “tag inputs”. And it can be styled so easily.

 

How To Use Auto Complete Control?

Firstly, include the .js file into your script:

Next, create an array (in JavaScript) containing the keywords:

customarray = new Array(‘apple’,’pear’,’mango’,’pineapple’,’orange’,’banana’,’durian’, ‘jackfruit’,’etc’);

Apply the widget to your textbox using JavaScript:

actb(document.getElementById(‘textbox_id’),customarray);

And you’re done!

 


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images