摘要:
$(".checkAll").live("click", function () { $(":checkbox", $(this).parentsUntil("table")).attr("checked", $(this).attr("checked")); })$(".checkAll")表示所有样式(class)为checkAll的元素.live("click", function () 表示给元素绑定一个点击响应,绑定方式是li 阅读全文
posted @ 2011-12-02 21:40
万事俱备就差个程序员
阅读(258)
评论(0)
推荐(0)
摘要:
display:block 前后会换行 阅读全文
posted @ 2011-12-02 21:39
万事俱备就差个程序员
阅读(423)
评论(0)
推荐(0)
摘要:
protected void btnSelect_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Request.Params["checkboxId"])) { string idList = Request.Params["checkboxId"]; // checkboxId 是 HTML元素的name属性.如果有多个相同名字的 checkboxId,则得到的是以逗号分割的字符串.(Y) ... 阅读全文
posted @ 2011-12-02 21:34
万事俱备就差个程序员
阅读(765)
评论(0)
推荐(0)
摘要:
设置RadioButtonList的RepeatLayout属性为"Flow"就可以了。 代码如下: <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" ></asp:RadioButtonList> 阅读全文
posted @ 2011-12-02 17:25
万事俱备就差个程序员
阅读(827)
评论(1)
推荐(1)

浙公网安备 33010602011771号

