Home > Web Front-end > JS Tutorial > body text

js实现匹配时换色的输入提示特效代码_javascript技巧

php.cn
Release: 2016-05-16 15:44:38
original
981 people have browsed it

本文实例讲述了js实现匹配时换色的输入提示特效代码。分享给大家供大家参考。具体如下:

这是一款js输入提示特效,当你在输入框中输入字母时,如果下边列出的类别中有与你字母相匹配的,那么这些内容将会变成红色,着重显示出来,与输入框下拉提示是基本是一样的,只是换了一个方式。

运行效果截图如下:

在线演示地址如下:

http://demo.jb51.net/js/2015/js-tips-cha-color-codes/

具体代码如下:




一种输入提示特效,匹配时换色



Copy after login

希望本文所述对大家的javascript程序设计有所帮助。

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Latest issues
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!