Javascript - Multiple Select Boxes, Remove 'selected' Options November 15, 2024 Post a Comment We're wanting to rank people in order, but don't want to allow the same option to be selected more than once: Person Number 1 Solution 1: If I understand correctly, you have N persons that you want to rank from 1 to N (there's nobody left out of the ranking).If JavaScript components are an acceptable option for your context, then I would suggest you use the «Sortable» component :http://jqueryui.com/sortable/It could give a better user experience than having multiple "select" elements.EDIT : Ok I see from the comments that you really want to use N "select". As suggested by Flea777 you should look at the .change() event of JQuery, and set the "disabled" attribute on the "option" entries which have already been selected : http://www.w3schools.com/tags/att_option_disabled.asp Share Post a Comment for "Javascript - Multiple Select Boxes, Remove 'selected' Options"
Post a Comment for "Javascript - Multiple Select Boxes, Remove 'selected' Options"