hismightiness
12-05-2003, 03:03 PM
I am in the need to create a JavaScript which takes the date entered into one field and automatically parses the string entered and enters consecutive dates in other textbox fields for the rest of the week.
Example:
Monday: *textbox* (onblur event triggers JS which fills in the rest of the fields)
Tuesday: *textbox* (readonly)
Wednesday: *textbox* (readonly)
Thursday: *textbox* (readonly)
Friday: *textbox* (readonly)
Saturday: *textbox* (readonly)
Sunday: *textbox* (readonly)
This all should be done with textbox fields and I would like to use the onblur event. Does anyone know of a place where a similar function is performed anywhere so I can get an idea of how to do this? I can already account for the date to be filled in correctly in the following format MM/DD/YYYY.
I am getting pretty familar with JavaScript, but I am not good at parsing and returning strings using JavaScript yet.
Example:
Monday: *textbox* (onblur event triggers JS which fills in the rest of the fields)
Tuesday: *textbox* (readonly)
Wednesday: *textbox* (readonly)
Thursday: *textbox* (readonly)
Friday: *textbox* (readonly)
Saturday: *textbox* (readonly)
Sunday: *textbox* (readonly)
This all should be done with textbox fields and I would like to use the onblur event. Does anyone know of a place where a similar function is performed anywhere so I can get an idea of how to do this? I can already account for the date to be filled in correctly in the following format MM/DD/YYYY.
I am getting pretty familar with JavaScript, but I am not good at parsing and returning strings using JavaScript yet.