hi im new to vbscript.
basically what im trying to achieve is if a user selects a certain date greater than the current date from this calendar in a form, then the time field ( next field) should be defaulted to empty. Initially when a user opens this form, the date field is defaulted to current date and the time field is defaulted to "ASAP". If the user changes the date to a greater date, then I immediately want the time field to get rid of "ASAP" and show an empty field. How can i achieve this?
here is my code:
distDate = Request("dateTextField")
If CDate(disDate) > Date Then
distTime = ""
Response.Write "<input type ='text' name ='time' id = 'distributionTime' value = '" &distTime& "' />"
end if
Im just confuse on, how i am supposed to immediately change the time field to blank as soon a the user selects a date greater than the current date. I need to to occur before th user lcicks the submit button. Plz help!
basically what im trying to achieve is if a user selects a certain date greater than the current date from this calendar in a form, then the time field ( next field) should be defaulted to empty. Initially when a user opens this form, the date field is defaulted to current date and the time field is defaulted to "ASAP". If the user changes the date to a greater date, then I immediately want the time field to get rid of "ASAP" and show an empty field. How can i achieve this?
here is my code:
distDate = Request("dateTextField")
If CDate(disDate) > Date Then
distTime = ""
Response.Write "<input type ='text' name ='time' id = 'distributionTime' value = '" &distTime& "' />"
end if
Im just confuse on, how i am supposed to immediately change the time field to blank as soon a the user selects a date greater than the current date. I need to to occur before th user lcicks the submit button. Plz help!