Site Logo

Google Chrome Community Forum

A forum to discuss everything about the Google Chrome web browser and operating system.
 
It is currently Wed Sep 08, 2010 7:40 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Using javacript to change the seleted option in a drop box
PostPosted: Tue Feb 02, 2010 9:18 am 
Offline

Joined: Tue Feb 02, 2010 8:53 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© GoogleChromeCommunity.com. NOT affiliated with Google. Forum powered by phpBB. Template by DEVPPL.