Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Selecting an item in an OPTION group in Javascript?

Reply
Thread Tools

Selecting an item in an OPTION group in Javascript?

 
 
Gazchurchend
Guest
Posts: n/a
 
      09-03-2005
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..

 
Reply With Quote
 
 
 
 
Gazchurchend
Guest
Posts: n/a
 
      09-03-2005
OK SORRY.....

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

Please ignore.....

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
selecting an option from a select SGershon Javascript 5 05-04-2005 11:22 PM
How can I dynamically populate data when selecting an option from a dropdown list? jzhang29 Javascript 1 02-24-2005 06:15 AM
Selecting a Specific Option mike Javascript 1 02-11-2005 12:56 AM
datagrid with edit option selecting data Robin ASP .Net 1 08-06-2004 12:53 PM
datagrid with edit option selecting data Robin ASP .Net Datagrid Control 0 08-05-2004 04:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57