The Javascript needed for this is included in the dropdown Javascript, so as long as you implement it correctly it's going to work automatically