Yep thats it!! Thanks for youre help I did the following:
document.forms['predealform'].elements['sdMonth'].selectedIndex = (start_date_month-1)
start_date_month is the variable thats being passed in as a number and it sets the correct date,
Thanks,
Sorry got that slightly wrong, it doesnt work in Firefox just it defaults to the first value in the dropdown...
In IE it doesnt default just goes blank. I want to set it to the value "start_date_month" which def has a value (as the alert box proves this) but it doesnt seem to work,
Hi all,
I have 3 fields in a form of which 2 are being populated fine with the following syntax:
document.predealform.sdDay.value = sd_start_date;
document.predealform.sdMonth.value = start_date_month;
document.predealform.sdYear.value = start_date_year;
The var on the right hand side all...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.