CheckBoxList多选样式jquery、C#获取选择项


当前第2页 返回上一页

1

2

3

4

5

6

7

8

<asp:CheckBoxList ID="ddlplatform" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"

CssClass="checkboxlist">

<asp:ListItem Value="APP">APP</asp:ListItem>

<asp:ListItem Value="移动触屏">移动触屏</asp:ListItem>

<asp:ListItem Value="PC">PC</asp:ListItem>

<asp:ListItem Value="微信">微信</asp:ListItem>

<asp:ListItem Value="微博">微博</asp:ListItem>

</asp:CheckBoxList>


PHP代码如下:

1

2

3

4

5

6

7

8

9

10

//使用平台

string Platfrom = string.Empty;

foreach (ListItem li in this.ddlplatform.Items)

{

if (li.Selected)

{

Platfrom += li.Text + ",";

}

}

Platfrom = Platfrom.TrimEnd(',');

返回前面的内容

相关阅读 >>

bootstrap-multiselect 多选实例代码

CheckBoxList多选样式jquery、c#获取选择项

更多相关阅读请进入《CheckBoxList》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...