Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About stevemessenger

  • Rank
  1. Thanks for your prompt reply. Console.log shows keyN to be "<select id="keyType">" rather than directly assigning a value to keyN. This introduces a coding concept beyond my present understanding. I will use this as a starting point for further study.
  2. I am new to Javascript so please be patient. Here I have two dropdown lists each with an alert to display the list selection. My code is a duplicated adaptation of a w3schools example.Both alert messages show selections from the "keyName" list because (I assume) both alert messages use getElementsByTagName("option").if I put the variables keyN and keyT alone in the alert functions they display the expected selection index numbers. Is there a way to link 'option' to 'select id' that forces the correct list to be read? Or perhaps another way to approach the task?Thanks in advance for any advic
  • Create New...