I would like to give people the choice of searching for a widget based on whether they want to buy or rent.

the first input in the form would contain a dropdown/radiogroup which gave the options buy, rent, both. defaults to buy.

If the user chooses "buy" then dropdowns for price min and price max show if they choose "rent" dropdowns for rental price min and max show and if they choose both all four options are shown.

If the user has javascript disabled I would like to hide the radio group and show all four dropdowns.

Sadly Javascript is not my strong point and I don't know where to start with this one.

Any help would be greatly appreciated.