Home  >  Article  >  Web Front-end  >  js实现表单检测及表单提示的方法_javascript技巧

js实现表单检测及表单提示的方法_javascript技巧

WBOY
WBOYOriginal
2016-05-16 15:45:031073browse

本文实例讲述了js实现表单检测及表单提示的方法。分享给大家供大家参考。具体如下:

这是个实用的表单判断以及表单提示效果,如果点击需要输入文字的时候,提示就会跑出来,提示框的形状比较个性化,有一个三角符号指向输入框,有两张图片需要下载。

运行效果如下图所示:

在线演示地址如下:

http://demo.jb51.net/js/2015/js-table-check-form-tips-codes/

具体代码如下:




表单检测及表单提示



Tab or click through the fields to reveal the hints.

This is the name your mama called you when you were little.
This is the name your sergeant called you when you went through bootcamp.
The thing with the @ symbol and the dot com at the end.
Pick a famous year to be born in.
Between 4-12 characters.
Between 5-13 characters, but not 7. Never 7.

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

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