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..
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..