jquery;https://github.com/posabsolute/jquery-validation-engine
validationEngine,中文doc: http://code.ciaoca.com/jquery/validation_engine/<a href="#" class=" icon user"></a><input type="text" class="validate[required]" name="name" placeholder="your name" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'your name';}" ><div class="clear"></div>当placehoder和this.value值不一样时,jquery无法出现效果。
HTML 5 placeholder 属性
placeholder 属性提供可描述输入字段预期值的提示信息(hint)。
立即学习“PHP免费学习笔记(深入)”;
该提示会在输入字段为空时显示,并会在字段获得焦点时消失。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号