Hi All I wonder if someone can help me i don't know much about JavaScript. I'm working on a PHP file, it has two dropdown boxes 'starttime' and 'endtime' I want it so that if someone selected 9am 'starttime' the 'endtime' should change to 10am onwards. so basiclly gap of 1hr. Is this possible with Javascript? many thanks Zed
yes it is possible. do both dropdowns. set value="13" etc on all hours. look for javascript dropdown onchange events on google - add one that then gets this.selectedIndex.value, does a parseInt on it, adds 1 or resets to 0 after 24, and then sets dropdown2's selectedindex/value to the new value. i wouldn't expect people to write the script for you though.