I know I'm pushing my luck here but I have one more question on this thread.
Is it possible to assign a value to the text in the span, and then submit that value with my form?
For example, if "Wednesday" was displayed in the span it would have a hidden value of 3, and 3 would be entered into a specified column of my database when the form was submitted.
I didn't know if something like this would work in the function or not.
var weekday=new Array();
weekday['Mon']="Monday";
weekday['Tue']="Tuesday";
weekday['Wed']="Wednesday" value="0";
weekday['Thu']="Thursday";
weekday['Fri']="Friday";
weekday['Sat']="Saturday";
weekday['Sun']="Sunday";