By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,480 Members | 1,808 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,480 IT Pros & Developers. It's quick & easy.

Want to set a value of a combox, using a string

P: n/a
I have a popup window where a user can select from a list of address
records. When passing the details back to the calling screen i set all
the address fields using code like this:

Page.main.fldStreet.value = retStreet;
Page.main.fldCity.value = retCity;

but the problem i'm haveing is setting the selection of the combo box
for country codes using the returned country code value. i know there
is a setSelectedIndex but this doesn't help much. is there an
equivelent .value = ?

Sep 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Yes they do have a .value heres an example and some code.

http://km0ti0n.blunted.co.uk/viewfaq...29154586250000

This method / script will work in *ALL* modern browsers.

Andy

Sep 22 '05 #2

P: n/a
Silly server side html generator is making up it's own "option=" bits
in the <select>.

Silly me. sorted it now. thanks for the help.

Sep 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.