Как я могу открыть всплывающее окно на основе двух вариантов выбора
I want to design the following scenario usinh HTML,CSS and Java script: I have created one drop down menu where you should select city [ex. Chandigarh], when you will select city the corresponding algorithms will come with a drop down menu [ex. PSO,GA,BBO].If i select PSO then another popup window will open and there will be another dropdown menu with list of years [ex. 2030,2035,2040]. How could I design the following scenario?
Что я уже пробовал:
I am able to do to open popup window using one select option.i have added the code[i have added the dummy url to open another popup window]. But for multiple select option i need help. <pre><pre lang="HTML"> <pre><html> <head> <title>Pop URL on Select</title> <script language="JavaScript" type="text/javascript"> function openPop(){ var Sel_Ind = document.getElementById('myURLs').selectedIndex; var popUrl = document.getElementById('myURLs').options[Sel_Ind].value; winpops=window.open(popUrl,"","width=600,height=600,resizable,") } </script> </head> <body> <select id="myURLs" onChange="javascript:openPop();"> <option value="">Select a page...</option> <option value="http://news.bbc.co.uk">PSO</option> <option value="http://www.the-company.com">GA</option> <option value="http://www.b3ta.com">BBO</option> <option value="http://www.google.com">DE</option> <option value="http://www.sitepoint.com/forums">Help</option> </select> </body> </html>