dimanche 19 septembre 2021

How to Get the value of options in multiselect div

I want to retrieve the multi-select values after selected it this is the code in aspx page

<div class="multiselect" id="lblMultiSelect" runat="server" multiple="multiple" data-target="multi-0">
    <div class="title noselect">
        <span class="text">Select</span>
        <span class="close-icon">&times;</span>
        <span class="expand-icon">&plus;</span>
    </div>
    <div class="container"  runat ="server" id="t">
      <% For v As Integer = 0 To Years_dt.Rows.Count - 1 %>
         <% Dim selectedYear As String %>
             <% selectedYear = Years_dt.Rows(v).Item("COLUMN_NAME")%>
                 <option style="color:black;" value="<%Response.Write(selectedYear) %>" >                                                          
                    <% Response.Write(selectedYear)%> </option>
                  <%next %>
          </div>
</div>

in the vb, I want to for each in these values and there is an option to select and delete the selection like this how the dropdown list looks like




Aucun commentaire:

Enregistrer un commentaire