remove selectbox options depending on current date
Posted on 2007-03-29
ive got a selectbox with all the week numbers starting with week 1 and finishing with week 52.
what i need to do is remove all the week numbers after a certain date in each month. The certain date is the 3rd of each month.
currently we are on week 13. when it comes to april 3rd, all week numbers before this date should no longer be available to select. when it comes to may 3rd, all week numbers before the may 3rd should no longer be available and so on...
my problem is, i have no idea where to start or code something that will do the above??