hi i currently use this for a form that has individual day/month/year drop downs:
function fromDate()
{
today = new Date();
d = today.getDate();
m = today.getMonth();
y = today.getFullYear();
document.SelForm.ddd.selectedIndex = d+0;
document.SelForm.ddm.selectedIndex = m+0;
document.SelForm.ddy.selectedIndex = y-2005;
}
but i have a form that use the following format:
<option value="1/2006">Jan 06</option>
<option value="2/2006">Feb 06</option>
and so on...................
how can i ammend that script that that Nov 06 becomes the default month throughout november?????
function fromDate()
{
today = new Date();
d = today.getDate();
m = today.getMonth();
y = today.getFullYear();
document.SelForm.ddd.selectedIndex = d+0;
document.SelForm.ddm.selectedIndex = m+0;
document.SelForm.ddy.selectedIndex = y-2005;
}
but i have a form that use the following format:
<option value="1/2006">Jan 06</option>
<option value="2/2006">Feb 06</option>
and so on...................
how can i ammend that script that that Nov 06 becomes the default month throughout november?????