1
Good afternoon,
I’m having trouble returning the values of N items selected with Select2, it return only the first. I’m using Asp.net.
<asp:DropDownList ID="ddlMeses" runat="server"
class="js-example-basic-multiple menorselect2"
onchange="todos()"
multiple="true">
<asp:ListItem Value="13">Todos os meses</asp:ListItem>
<asp:ListItem Value="1">Jan</asp:ListItem>
<asp:ListItem Value="12">Dez</asp:ListItem>
</asp:DropDownList>
Dim listOfValues AS List(Of String) = new List(Of String)
For Each item As ListItem In ddLokasi.Items
If item.Selected Then
listOfValues.Add(item.Value)
End If
Next
put what you have to code so we can help you Fabio
– andrepaulo
You can edit the question using the Edit link below your post Fabio
– andrepaulo