Replace all the options in a select box ?

M

mark4asp

Is it possible to replace all the options in a select box with one
statement?

Suppose that I have an Select (selA) containing 100 options and that I
had a second (selB) containing 1200 options - could I move the options
from selB to selA with the statement:

selA = selB:

if so what would the name and id of selA now be - the same as that for
selB?

if selB was in an iframe in the same document as selA would it be
possible? - supposing the selects has all the same attributes.

I am having trouble quickly filling a select box. innerHTML didn't
work with IE nor did the 'fix' on msdn.
 

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

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top