Home >Web Front-end >JS Tutorial >Prompts and automatic completion effects when inputting in the inputSuggest text box (email input automatic completion plug-in)_javascript skills

Prompts and automatic completion effects when inputting in the inputSuggest text box (email input automatic completion plug-in)_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:53:331720browse

Like QQ mailbox prompts, Baidu search box prompts, Taobao product search prompts, etc., many websites now have similar effects to improve user experience.
Usage:
new InputSuggest({
input HTMLInputElement required
data Array ['sina.cn','sina.com','2008.sina.com','vip.sina .com.cn'] required
containerCls container className
itemCls container child className
activeCls highlighted child className
width setting this will override the width of containerCls
opacity transparency setting this The item will override the opacity of containerCls...
Online demo: http://demo.jb51.net/js/2012/inputSuggest/
Full source code download: http:// www.jb51.net/jiaoben/44737.html


[Ctrl A select all Note:
If you need to introduce external Js, you need to refresh to execute ]
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn