locked
multiselect list arrays how picked in angularjs RRS feed

  • Question

  • User-667650070 posted

    Hi All.  I have a multiple select list and I want the array to be ordered by how they were selected from the selectlist because I want to remove the last item the user picks if the number of items picked is over 3 items.  I'm able to remove items just fine but I cannot remove the correct Item because the array does not order itself by the order of items picked but by alphanumeric order.  The array is an angular array.  

    Thursday, May 19, 2016 3:26 PM

Answers

  • User61956409 posted

    Hi jungersa,

     I'm able to remove items just fine but I cannot remove the correct Item because the array does not order itself by the order of items picked but by alphanumeric order.

    You could try to attach client side click event to multiselect items, then you could push selected item to a custom array that stores the items in order on click event.

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 20, 2016 7:26 AM