Possible Duplicate:
refactor javascript - show and hide fields based on current selection
I need help refactoring the javascript. http://jsfiddle.net/BDLYP/
I was able to hide and show fields, but I know this can be improved upon.
If #state is empty, hide #high-schools and #other_high_schools
If #state is picked, show #high-schools and show #other_high_schools (if #high-schools is empty)