jQuery - remove select option based on text not value
you can use :contains to filter based on text content of an element, but note that it will return partial matches. So :contains('Vaillant 835')will return :contains('Vaillant 835') and :contains('Vaillant 8356')jQuery("#select_Boiler option:contains('Vaillant 835')").remove();If you wa...
作不能为空 javascript
几项不能同时为空的判断[@more@]function ninainai() { if(document.all("hidCount").value=="2") { //for(int i=2;i<=3;i++) //{ var txtCount2= document.Form1.all("dgProducts:_ctl2:txtCount").value; var txtMoney2= document.Form1.all("dgProducts:_ctl2:txtMoney").value; var txtCount3= document.Form1.all("dgProducts:_ctl3:txtCount").value; var txtMoney3= document.Form1.all("dgProducts:_ctl3:txtMoney").value; //var txtProductPrice = document.al
计算DataGrid中的模版列的结果,使用javascript.
在DataGrid中有3个模板列包含Textbox分别为 DG_ShuLiang (数量) DG_DanJian(单价) DG_JinE(金额)分别在5.6.7列,要求在录入数量及单价的时候自动算出金额即:数量*单价=金额还要求录入时限制为 数值型.我如何用客户端脚本实现这个功能?[@more@]<asp:TemplateColumn HeaderText="数量"> <ItemTemplate><asp:TextBox id="ShuLiang" runat='server' Text='<%# DataBinder.Eval(Container.DataItem,"DG_ShuLiang")%>' onkeyup="javascript:DoCal()"/><asp:RegularExpressi
JavaScript精品源码
JavaScript精品源码:http://qbit.100steps.net/javascript.php[@more@]
在状态栏里显示infomation
<body onMouseOver="window.status=' 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">[@more@]
checkbox联动
一个选,其他相同条件的选[@more@]//jvascript 1 datagrid使用intput type=textfunction wocao(obj) { var ff = obj.parentNode.parentNode.parentNode.parentNode.tagName; var ff2 = obj.parentNode.parentNode.rowIndex; var va = obj.parentNode.parentNode.parentNode.parentNode.rows[parseInt(ff2)].cells.item(1).children.item(0).value; var ff3 = obj.tagName; if(!obj.name.checked) { for(var i=2;i<7;i++) { if(document.all("DataGrid1:_ctl"+i+":tr1").value == va) { document.all("DataGri
在c#中调用confirm
在满足条件的情况下作行动。[@more@]1)if(条件){this.RegisterClientScriptBlock("jj", "<script language=javascript>if (confirm("要到sohu吗")==true) window.open("http://www.sohu.com"); </script>");}2)if(条件){ string strURL = "../FramePage.aspx?URL=Track/CHLViewProjectReplyEC.aspx?CHLPRID="+this.CHLPRID+"~:~BOID="+this.BOID.ToString()+"~:~QuoInfoID="+this.QuoInfoID.ToString(); Response.Write("<script>a
文本框只能输入数字 javascript
只能输入数字,[@more@]<input onkeyup="this.value=this.value.replace(/D/g,'')" onafterpaste="this.value=this.value.replace(/D/g,'')"> --------------------------------------------------------------- <input name=txt1 onchange="if(/D/.test(this.value)){alert('只能输入数字');this.value='';}">