我说的其实就是如上图所示在右侧加一个限制条件 首先要找到这个文件/dede/templets/co_add_step2.htm 找到如下图所示的位置 加一句 <input?name="iswater_<?php?echo?$tname;??>"?type="checkbox"?id="isw...
分类:
其他好文 时间:
2014-07-22 09:03:06
阅读次数:
321
我们项目后台操作中不可避免的会有同时删除多项的操作,本文实现的就是当点击全选时,选定当前页中所有项,当取消了某一项的选定,则“全选”CheckBox的checked也为false;然后在后台中取到所选定的项的ID,实现同时删除多项的功能。前台代码Code highlighting produced ...
分类:
其他好文 时间:
2014-07-19 18:08:23
阅读次数:
242
如果用一个checkbox被选中,alert这个checkbox的属性"checked"的值alert($"#xxx".attr("checked")),会打印出"true",而不是"checked"!
分类:
Web程序 时间:
2014-07-19 11:27:45
阅读次数:
202
var objs = document.getElementsByTagName("input");
for (var i = 0; i < objs.length; i++) {
if (objs[i].type.toLowerCase() == "checkbox" && objs[i].checked)
alert(objs[i].value);
}...
分类:
Web程序 时间:
2014-07-18 11:22:10
阅读次数:
218
1、在jsp页中放置一个checkbox控件//该checkbox放在循环体中,其中value必须获取主键的值。这样就可以有多个name值相同,value值不同的checkbox控件。提交时传过来的是字符串数组。2、接收的Servlet中进行处理private void process(HttpSe...
分类:
Web程序 时间:
2014-07-18 09:00:26
阅读次数:
198
1、定义一个函数//参数top为触发全选的checkbox对象function selAll(top) {var items = document.getElementsByTagName("input");//获取所有的input标签对象for ( var i = 0; i
分类:
Web程序 时间:
2014-07-18 08:07:30
阅读次数:
209
GridView中使用CheckBox
asp.net中checkbox是向服务器提交时才能触发事件
把该控件的autopostback设置为true,才能响应事件...
分类:
其他好文 时间:
2014-07-17 16:29:24
阅读次数:
200
1,取出角色数据源var role = Role.SelectList();2.设置样式 int x = 0; int width = 11; int hang = 1; CheckBox ckb = null; foreach (var roleDto in role) { if (width >...
分类:
其他好文 时间:
2014-07-17 12:55:30
阅读次数:
233