不要用服务器控件,改用input
解决方案 »
- 怎么样使用js实现类似淘宝首页那样的层切换效果?
- 怎么把页面弹到锚记的位置去?就像focus表单那样的。
- 怎么在网站里面添加投票功能呢?
- 请教一个正则表达式的写法
- 下面语句为什么不提交表单?
- 我在我的frame中的一个页面中用一个button的onClick="javascript:window.close()"怎么关闭不起作用呢?
- jQuery插件Lazyload的占位图片
- 关于prototype的一点疑惑
- js,jquery,jquery mobile 有调用安卓相机的功能么
- interator迭代运行后什么也不显示
- 这种加粗 效果如何在FF下执行....
- 有没有这样的日期控件(不是下拉的)?
document.getElementById('+lblID+').className='ErrMsgArea';
<asp:Label ID="Label12" runat="server" Text="Label">123</asp:Label>
加上去就好了
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<script language="javascript" type="text/javascript">
function txtfocus(lblID,txtID)
{
document.getElementById(lblID).className='ErrMsgArea';
document.getElementById(txtID).style.background = 'red';
return false;
}
</script>
<asp:TextBox ID="txtReUsrName" runat="server" Height="19px" CssClass="txtOnFocus" onfocus="javascript:txtfocus('txtReUsrName','Label12');"> </asp:TextBox>
<asp:Label ID="Label12" runat="server" Text="Label">123</asp:Label>
</form>
</body>
</html>
IE7下么得问题!