• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Programatically getting a value from a dropdown

Programatically getting a value from a dropdown 12 years 1 week ago #22899

Hi there,
Love the product so far.

I have two lists dropdown lists:

list 1:

ABC|Hammocks
DEF|Underwear
GHI|Metronomes

list 2 (hidden)

125|ABC
254|DEF
435|GHI

I want to retrive the value field from list 2 based on the selected value in list 1 (is the user selects Metronomes I retrieve value 435). I'm trying to use something like the following:

document.getElementById('list2').value=document.getElementById('list1').value;

Problem is of course that using list2.value is incorrect. Can some one help me please - should be simple shouldn't it?

Many thanks
Paul
The administrator has disabled public write access.

Programatically getting a value from a dropdown 12 years 6 days ago #22976

Worked it out with a little help from the documentation.
The administrator has disabled public write access.

Programatically getting a value from a dropdown 11 years 11 months ago #23457

I am very interested in finding out how you achieved this. Is it possible for you to post the final code to see what was done?

Thanks!

-David
The administrator has disabled public write access.

Programatically getting a value from a dropdown 11 years 7 months ago #25039

  • dyvel
  • dyvel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
I'd like to know this as well, if you would be so kind to share your solution?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!