zoukankan
html css js c++ java
Jqonfocus,onblur
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Document</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <style> .b{border:1px solid #fc0;background:#FFFFF7;} input,textarea{border:1px solid #92B0DD;background:#FAFCFD;} label{float:left;90px;padding-right:5px;text-align:right;overflow:hidden;} </style> <script> // 连锁店显示 $(function(){ $('input[type="text"],input[type="password"], textarea').focus(function(){ $(this).addClass('b'); }).blur(function(){ $(this).removeClass('b'); }); }); </script> </head> <body> <label for="username">name: </label><input type="text" name="" id="username" /><br /> <label for="password">password: </label><input type="password" name="" id="password" /><br /> <label for="textarea">textarea:</label> <textarea name="" id="textarea" cols="30" rows="10">
运行代码
查看全文
相关阅读:
Angular Material Starter App
缺少标识符、字符串或数字
jquery ajax post 传递数组 ,多checkbox 取值
Circular dependencies cannot exist in RelativeLayout
第二次作业
第一次作业
第一次作业
软工实践个人总结
第01组 Beta版本演示
第01组 Beta冲刺(4/5)
原文地址:https://www.cnblogs.com/jikey/p/1737108.html
最新文章
SVN创建分支主干策略
阿里云服务器tomcat ./shutdown.sh关闭命令报错Could not contact localhost:8005. Tomcat may not be running.
Linux CentOS中防火墙的关闭及开启端口
Solr7.4.0的API(Solrj)操作及项目中的使用
Solr-全文检索工具简介
软工实践个人总结
第12组 Beta版本演示
第12组 Beta冲刺(1/5)
第12组 Beta冲刺(2/5)
第12组 Beta冲刺(3/5)
热门文章
第12组 Beta冲刺(4/5)
第12组 Beta冲刺(5/5)
第12组 Alpha事后诸葛亮
第12组 Alpha冲刺(6/6)
第12组 Alpha冲刺(5/6)
支付宝 手机页面支付 集成 出现 “系统繁忙,请稍后再试”
sql:将字符类型字段转换成数字并排序
常见文件系统:
Juqery error () 出现 parsererror 问题
全景图从拍摄到 online
Copyright © 2011-2022 走看看