by Nimble on Thu Apr 07, 2011 5:37 am
The code below is 1 html page and one .js page. In the html page there are two drop down menus. For the first drop down you can select either 1, 2, 3, or 4.. For the second drop down you can select 1, 2, 3 or 4, however, if you select 2 for the first drop down and then try to select 2 for the second drop down box you get an error because the javascript does not let you choose the same value twice. Another example if you select 4 for the first drop down you will not get an error if you select either 1, 2, or 3, however if you select 4 you get an error message saying sorry pick another value and you are forced to select something else. So now here is the problem.. The code works fine, I tested it and everything works perfect. Here is where I need help.. I want to move one of the drop down menus to another page so that there is one drop down on p1.html and the other on p2.html... When I try to do it the javascript does not work and the drop down on p1.html does not affect the drop down on p2.html. I want it so that on p1.html if you select a value, you get an error on p2.html if you pick the same value. Can anyone help me out??