PDA

View Full Version : when radio btn changes, rent/buy change and amounts of select fields changes ?



leonidassavvides
03-05-2008, 08:01 AM
I built a search form at
http://www.polis-realestate.eu/index.html
i want this form when change it's top radio button from rent to buy change and min/max amounts selsect fields like
http://www.casasbonitas.co.uk/
what is the solution ?

codeexploiter
03-05-2008, 08:12 AM
You need to use the "value" attribute of the radio button markup to specify a value using which you can identify two radio buttons. Use the 'onclick' event on it.

An example can be found here (http://www.w3schools.com/js/tryit.asp?filename=tryjs_form_radio)

leonidassavvides
03-05-2008, 08:25 AM
I must use server side scripting and reload the webpage[same but search form differ], ... ? If a webpage contains search results how after reload retain them ?

leonidassavvides
03-05-2008, 09:32 AM
yes but I want two select lists change with radio change ?
radio value="rent" select list range 100 - 3000 increments of 100
radio value="buy" select list range 50,000 - 500,000 increments of 10,000