Two drop-down with same value and filter

I have two drop-downs connected to database.
For example db contain 1 to 9.
If I choose 2 from first drop down, then the second drop down don’t want to show the already selected item(2).

I already have onChange function in drop-down.