I have a form that uses POST to send the info to me. In the form, I have a drop down menu. I also have sub-menus that are visible or not based on which option is selected. For the sake of these sub-menus, I had to put a value to each option on the list so that I could use JS.
So here is the question: Is it possible to find a work around so that when the email is sent, the subject contains the item in the menu instead of its value and still be able to use the JS code?
Let me also note, that the code is working fine, so I only took out small portions for examples, I just want to get the subject part to look better for the sake of replies. Thank you so much in advance!!!
You could use a different attribute to identify each option through JS; when the value attribute isn’t present, it sends the actual content of the option instead, so this would post “General Question” and be identifiable by the unique id optionGen.
Ok, i stand corrected. When I changed to using id instead of value, the submenus open when the item is selected, but do not hide again when a different one is picked. Am I not able to use the id attribute in the JS?
Time to try plan B.
Donboe, I don’t fully understand how to put multiple values in as far as the PHP and JS are concerned. is there a site that you could recommended to help me work through that? Also, if I use this, can I have the JS use the first, and the PHP use the second value?
I also posted in the JS section, since that may be more the problem than the PHP. I don’t want to drive you completely crazy. I’ll keep on it and let you know how it goes Thanks