I am creating 2 drop down menus where the first is a start time, e.g. 8:00 am which uses a loop to generate the times, this works fine and the drop down menu has the desired time frames, now i need to create a script which returns as false if the start time is greater than the finish time and i have this:
var conting_timefrom=frm_conting.timefrom.value;
if(isNaN(conting_timefrom)){alert("You need to enter a starting time.");return false;};
if(conting_timefrom.value>conting_timeto.value){alert("The time you have entered is after the finish time.");return false;};
however this doesn't work, any clues?