How to disable selected elements in dropdown ?

Hello Tamil,

Could you please elaborate a bit more?


if I select an item from a dropdown the selected item should be disabled, the user should not be able to select the already selected item from the drop down for the next time

What do you mean with next time?

This user will never be able to select this option ever again?
This user will not be able to select the same option in this current screen session?

Hi,

I am using the drop down in a list once the user selects an item from the list for the next time user should not select the same item ever again  

Hi Tamil,

Please consider to use the Select2 component from here.

You can have a look at the example of multiple select boxes from this website.

Could you verify if this is helps?

Thanks & regards,

Boney

Tamil Mathi Pari wrote:

Hi,

I am using the drop down in a list once the user selects an item from the list for the next time user should not select the same item ever again  

Ok, so to make sure that the user never selects the selected item ever again, you need to save this information in a database. So the list that feeds your dropdown must be the total available items and then disable the ones that have been selected before (saved in this UserSelectedItem table).

Do you understand what I mean?