求一段JS脚本 我写了一个自定义放在panel里求一段JS代码需求界面中有个btn按钮点击btn让panel显示出来简单说Js就是点击btn控制panel的Visible 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $('#btnId').click(function(){ $('#panelId').show();}) <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="DisableButton.WebForm1" %><!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 runat="server"><title></title><script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script><script type="text/javascript">function click() { var panel1=document.getElementById( "Panel1 "); panel1.visible=true; }</script></head><body><form id="form1" runat="server"><div> <input type="button" id="btnTest" Text="按钮" onclick="click()" /></div></form></body></html> panel1.style.display=""如果在服务器端不能设置 visible=“false” 只能先设置panel 的style dispaly为“none” WEB界面的开发 js页面不能跳转 急求答案 关于js this的一些疑问 var bb = [] ; 是定义什么? JS获取页面doctype,有木有大侠知道,并且可以兼容IE,firefox的 高分求救一个超级简单的问题 求一javascript树型菜单,能够动态加载树节点 jquery 获取日 月 周 如图 格式 请问如何删除一个数组里的某个元素? 急需帮忙 能不能通过id找到一个hidden在table的哪一行 罕见的js错误: typeerror:object #<a document> has no method load
$('#panelId').show();
})
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="DisableButton.WebForm1" %>
<!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 runat="server">
<title></title>
<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript">
function click()
{
var panel1=document.getElementById( "Panel1 ");
panel1.visible=true;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="button" id="btnTest" Text="按钮" onclick="click()" />
</div>
</form>
</body>
</html>