Results 1 to 2 of 2

Thread: Populate?

  1. #1
    Join Date
    Dec 1969

    Default Populate?

    I&#039;m using this code to make selections from select1 and then populating it onto select2.<BR>I&#039;m using the Onchange() method to do so.<BR>But it doesn&#039;t seem to populate.<BR>Does "document.forms[0].select2.options = txt" populate onto select2 box or is it wrong?<BR><BR>Thanks,<BR><BR><BR>function mem()<BR>{<BR> option = document.forms[0].select1.options[document.forms[0].select1.selectedIndex].text<BR> txt = option<BR> document.forms[0].select2.options = txt<BR>}<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Populate?

    not exactly<BR><BR>there&#039;s a few articles about this a round. 1. www.clearviewdesign.com/newbie/<BR>2. http://rtfm.atrax.co.uk/infinitemonkeys/articles/javascript/997.asp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts