How to hide the option in dropdown,which has been selected in the prev

I have 4 dropdowns,in which i am populating the city names.For ex: Delhi,Mumbai,Bangalore.Suppose if i select Delhi in first dropdown,it should not displayed in rest of 3 drop downs.How i have to solve this in jsp.