No, I need 4 distinct drop downs, driven from one common DD. Think Regions, County, Towns as one set, an the other as Regions, Property Types and Property sub-Types. The Region DD is the same.
I have the code for the two sets now in two separate forms and js files because I was going insane. So now they are working. The logic is the same. So now I want to get rid of the need to ask for Region twice. Dormilich suggested I use the hidden...
User Profile
Collapse
-
I thought then that I could merge the code from the 2 forms, then have the 4 other DDMs as variables, with one common DDM1. The key would be if I could have 2 variables for the 1st DDM. Does this make sense?Leave a comment:
-
I couldn't get this to work. But I think I have a simple solution...in JavaScript, can I set different variables to the same element in js within the same form? For instance: can I set:
Code:aMenu3=document.formTripleMenu.menuTopics //and aMenu6=document.formTripleMenu.menuTopics
Leave a comment:
-
Yes, I had to give DD1 different names. If I am using basically the same code, how would I pass the information to the hidden field? Thanks.Leave a comment:
-
Passing values between 2 drop down forms on the same page
I have 2 forms on a page. I need to take one of the values from a drop down menu on the first form then pass this value to the second form on the same page.
Specifically I have 2 triple Drop Down (DD) menus.
I haveCode:======DD2 =========DD3 | DD1 | | ======DD4 ========DD5
DD1, DD2 and DD3 on one form
and
DD1, DD4 and DD5...Last edited by Dormilich; Nov 30 '11, 09:46 PM. Reason: added [code] [/code] tags for preserving whitespace -
Well it wasn't easy for someone who doesn't know Javascript, nor is it intuitive. I had to deal with parsing the text that converted it to numbers. For anyone wanting to do this, here's the code with the help of "Dormillich ". It still took me half a day to figure it out.
...Code:<html> <head> <script type="text/javascript"> function checkTotal() { document.listForm.total.valueLeave a comment:
-
Thanks so much. It makes so much sense once you showed me how to do it..Leave a comment:
-
I'm sorry, I don't understand. Can you give me an example? Thanks.Leave a comment:
-
Assigning values to check boxes and adding the numbers
The following routine adds a number to the total each time the checkbox with an assigned number is checked. This works perfectly (Example 1). But when I try to assign a variable that was calculated previously (Example 2), it returns a NaN in the Total, Can someone help me fix this? Thanks.
Example 1. This works
...Code:<script type="text/javascript"> function checkTotal() { document.listForm.total.value
No activity results to display
Show More
Leave a comment: