【转】jquery点击按钮显示和隐藏DIv

1 function changeDisplay() { 2 if ($("#btnShow").attr("value")== "添加附件") { 3 $("#IdShow").show(); 4 $("#btnShow").attr("value", "取消添加附件"); 5 } 6 else { 7 $("#IdShow").hide(); 8 $("#btnShow").attr("value", "添加附件"); 9 } 10 }
页面代码

1 <input type="button" id="btnShow" name="btnShow" value="添加附件" onclick="changeDisplay()" />
idShow为div的id
linux shell数据重定向
创建用户
Linux HA+ Oracle 安装维护手册
解决UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range
Linux 文件不能被root修改与编辑原因
python中的时间戳和格式化之间的转换
Python-Redis-发布订阅
Python-Redis-常用操作&管道
Python-Redis-Set
Copyright © 2011-2022 走看看