晨风

-------------------- 业精于勤,荒于嬉;行成于思,毁于随

导航

随笔分类 -  Jquery

摘要:刚刚碰到一个要为html select添加readonly属性的要求,可是select是不支持readonly属性的,找了找,方法还是有的,不过大都比较麻烦。以下的方法个人认为是最简单的:<select id="lstTest" onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"><option value="1">test1</option&g 阅读全文

posted @ 2012-12-28 13:55 shenyixin 阅读(334) 评论(0) 推荐(0) 编辑

摘要:JS:<body><select name="PaymentType" style="width:110px" > <option value="">请选择 </option> <option value="001">月付</option> <option value="002">半年付</option> <option value="003">年付</optio 阅读全文

posted @ 2012-12-11 16:46 shenyixin 阅读(89465) 评论(0) 推荐(3) 编辑

摘要://submit $('#formInfo1').submit(function(){ if(!submitCheck()){ return false; } try{ var formInfo = document.all('formInfo1'); if(Validator.Validate(formInfo,1)){ ... 阅读全文

posted @ 2012-10-25 17:56 shenyixin 编辑

摘要://根据Url参数名称获取参数值 function GetValueByPName(name) { var q = location.search.substr(1); var qs = q.split("&"); if (qs) { for (var i = 0; i < qs.length; i++) { if (qs[i].substring(0, qs[i].indexOf("=")) == name) { ... 阅读全文

posted @ 2012-10-10 14:34 shenyixin 阅读(684) 评论(0) 推荐(0) 编辑

摘要:HTML:<a class="personPopupTrigger" href="<link to person>" rel="4218,a17bee64-8593-436e-a2f8-599a626370df">House, Devon</a> <a class="personPopupTrigger" href="<link to person>" rel="4218,f6434101-15bf-4c06-bbb2-fbe8c1 阅读全文

posted @ 2012-02-29 19:49 shenyixin 阅读(4551) 评论(0) 推荐(0) 编辑

摘要:gridview中模板列TextBox求和赋值给一个TextBox(txt总维修金额)html:<Chsoft:SmartGridView ID="gv设备_外协维修合同明细" runat="server" Width="100%" IsShowIndexColumn="true" DataKeyNames="外协维修合同明细ID" AllowPaging="false" IsShowExcelLinkButton="false" IsSingleP 阅读全文

posted @ 2011-12-28 22:58 shenyixin 阅读(1353) 评论(0) 推荐(0) 编辑

摘要:GridView添加模板列<asp:TemplateField> <ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" /> </ItemTemplate> <HeaderTemplate> <input id="SelectAll" type="checkbox" /> </HeaderTemplate> </as... 阅读全文

posted @ 2011-12-22 21:14 shenyixin 阅读(271) 评论(0) 推荐(0) 编辑

摘要:<asp:GridView ID="grid" runat="server" AutoGenerateColumns="false" GridLines="Horizontal" OnPreRender="grid_PreRender"> <Columns> <asp:TemplateField> <HeaderTemplate> <input type="checkbox" id="chkAll" / 阅读全文

posted @ 2011-12-22 21:08 shenyixin 阅读(628) 评论(0) 推荐(0) 编辑

摘要:<head runat="server"> <title>无标题页</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#left").click(function(){ var movevalue 阅读全文

posted @ 2011-12-06 16:54 shenyixin 阅读(3231) 评论(0) 推荐(0) 编辑