jQuery Ajax显示对号和错号用于验证输入验证码是否正确
这篇文章主要介绍了jQuery Ajax显示对号和错号用于验证输入验证码是否正确的相关资料,需要的朋友可以参考下
废话不多说了,直接给大家贴代码了,具体代码如下所示:
首先引入jquery
.sl-error-verifycode { background-image: url("images/icons.png-600"); background-position: -26px 0; background-repeat: no-repeat; display: block; font-size: 18px; height: 23px; line-height: 20px; margin-left: 180px; margin-top: -25px; position: relative; text-align: center; width: 20px; z-index: 2; } .sl-correct-verifycode { background-image: url("images/icons.png-600"); background-position: -50px 0; background-repeat: no-repeat; display: block; font-size: 18px; height: 23px; line-height: 20px; margin-left: 180px; margin-top: -25px; position: relative; text-align: center; width: 20px; z-index: 2; }验证码的html 代码
验证码: *
gbook.php
注意图片一定要引入

标签: