脚本:
<script type="text/javascript">
$('#<%=ddEVNT1.ClientID %>').multiselect({
includeSelectAllOption: true
});
</script>
代码:
<asp:DropDownList ID="ddEVNT1" runat="server" Width="90%" Style="font-family: Calibri;
font-size: 15px;" Visible="true">
<asp:ListItem Text="--Select Event--" Value="-1"></asp:ListItem>
<asp:ListItem Text="50 m flat race for Boys" Value="0"></asp:ListItem>
<asp:ListItem Text="Musical Chair" Value="1"></asp:ListItem>
<asp:ListItem Text="Tug-of-war" Value="2"></asp:ListItem>
<asp:ListItem Text="Penalty Shoot out" Value="3"></asp:ListItem>
<asp:ListItem Text="Go as you like" Value="4"></asp:ListItem>
</asp:DropDownList>
已调用多选JavaScript和CSS。