大家帮我看看,这全选功能怎样做?
我点击首页滚动就全选首页滚动的。。。。
<label><input name="State<%=rs("GoodsID")%>" type="checkbox" id="State<%=rs("GoodsID")%>" value="net"<% if Instr(rs("GoodsState"), "net") > 0 or checked <> "" then response.write " checked=""checked"""%> />首页滚动</label>
<label><input name="State<%=rs("GoodsID")%>" type="checkbox" id="State<%=rs("GoodsID")%>" value="spe&recom"<% if Instr(rs("GoodsState"), "spe&recom") > 0 then response.write " checked=""checked"""%> />劲爆推荐</label>
<label><input name="State<%=rs("GoodsID")%>" type="checkbox" id="State<%=rs("GoodsID")%>" value="special"<% if Instr(rs("GoodsState"), "special") > 0 then response.write " checked=""checked"""%> />限时特价</label>
<label><input name="State<%=rs("GoodsID")%>" type="checkbox" id="State<%=rs("GoodsID")%>" value="recommend"<% if Instr(rs("GoodsState"), "recommend") > 0 then response.write " checked=""checked"""%> />新品上市</label>
<label><input name="State<%=rs("GoodsID")%>" type="checkbox" id="State<%=rs("GoodsID")%>" value="new"<% if Instr(rs("GoodsState"), "new") > 0 then response.write " checked=""checked"""%> />热销产品</label>