![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
文章平均质量分 75
梦想在飞
这个作者很懒,什么都没留下…
展开
-
javascript之HTML select option
一、基础理解: var e = document.getElementById("selectId"); e. options= new Option("文本","值") ; //创建一个option对象,即在标签中创建一个或多个文本 //options是个数组,里面可以存放多个文本这样的标签 1:options[ ]数组的属性: length属性-------转载 2013-01-27 13:54:54 · 474 阅读 · 0 评论 -
JS实现搜索框动态效果
实现搜索框以下效果: 点击它提示性文字消失,然后离开它,文字再现。 1、一般的做法: $("#tbxKeyword").focus(function(){ if($("#tbxKeyword").val() == "请输入关键字"){ $("#tbxKeyword").val(""); } }); $("#tbxKeyword").blur(fu转载 2013-03-05 23:32:17 · 1901 阅读 · 0 评论