Selecting an item in an OPTION group in Javascript?

G

Gazchurchend

I get straight to the point...

I need to select an item in an option group when a form loads.
Its a PHP form which will have a value sent in when the form loads.
This value is assigned to a Javascript value in the ONLOAD event. I
then need to select an item in a OPTION group which has been poulated
from a SQL query.

I am guessing somehow you can dynamically set the 'SELECTED' property
of the OPTION box for the value I want to select but I don't know the
syntax (Im'e not that hot at Javascript!)

Any help would be gratefully appreciated..
 
G

Gazchurchend

OK SORRY.....

I searched the group right after posting this request and found the
answer right away!!!!!!

Please ignore.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top