This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 1 year, 12 months ago.

Multi-Select can't be use more than two dropdown


  • rads
    Participant

    Member Reply #10152

    Hi Metronic, I tried to use your multi select more than 2: but it isn’t working. only the ine that is use id and name my_multi_select1 & 2 are working but my_multi_select3 aren’t working. how can I fix this?

     

    <div class=”form-group”>
    <label class=”control-label col-md-3″>Monthly Income</label>
    <div class=”col-md-9″>
    <select multiple=”multiple” class=”multi-select” id=”my_multi_select2″ name=”my_multi_select2[]”>
    <option selected>Rp 1jt-2jt</option>
    <option>Rp 3jt-5jt</option>
    <option selected>Rp 5jt-10jt</option>
    </select>
    </div>
    </div>
    <div class=”form-group”>
    <label class=”control-label col-md-3″>Monthly Income</label>
    <div class=”col-md-9″>
    <select multiple=”multiple” class=”multi-select” id=”my_multi_select2″ name=”my_multi_select2[]”>
    <option selected>Rp 1jt-2jt</option>
    <option>Rp 3jt-5jt</option>
    <option selected>Rp 5jt-10jt</option>
    </select>
    </div>
    </div>
    <div class=”form-group”>
    <label class=”control-label col-md-3″>Marital Status</label>
    <div class=”col-md-9″>
    <select multiple=”multiple” class=”multi-select” id=”my_multi_select3″ name=”my_multi_select3[]”>
    <option selected>Single</option>
    <option>Married</option>
    <option selected>Divorced</option>
    </select>
    </div>
    </div>

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #10167

    Hi,

    In your code you have 2 duplicate IDs(id=”my_multi_select2″). Please use unique ID per element to avoid conflict.

    Thanks.

You must be logged in to reply to this topic.