I'm am trying to create a script which will input data in a form when someone loads a page. The script works except when it comes to the drop boxes. I want the script to be able to choose an option from the list for the user.
This is the code that I am using..
Code:
document.birthdate.month[intMonth].selected="true";
document.birthdate.day[intDay].selected="true";
document.birthdate.year[conYear].selected="true";
This code works great in firefox but I cannot get it working in chrome. I am not sure if it is a bug or if webkit has a different method for accomplishing this task.
Any help would be greatly appreciated.