Opcje : <form name="doublecombo"> </select> <select name="stage2" size="1"> </select> <input type="button" name="test" value="Wczytaj!" onClick="go()"> </p> <script> <!-- /* Double Combo Script Credit By Website Abstraction (www.wsabstract.com) Over 200+ free JavaScripts here! */ var groups=document.doublecombo.example.options.length var group=new Array(groups) for (i=0; i<groups; i++) group[i]=new Array() group[0][0]=new Option("po numerze","wyszukaj_numer.php") group[0][1]=new Option("po odbiorcy","wyszukaj_kontrahent.php") group[0][2]=new Option("po dacie","wyszukaj_data.php") group[1][0]=new Option("obrot","zestawienie_obrot.php") group[1][1]=new Option("kontrahent","zestawienie_kontrahent.php") var temp=document.doublecombo.stage2 function redirect(x){ for (m=temp.options.length-1;m>0;m--) temp.options[m]=null for (i=0;i<group[x].length;i++){ temp.options[i]=new Option(group[x][i].text,group[x][i].value) } temp.options[0].selected=true } function go(){ location=temp.options[temp.selectedIndex].value } //--> </script>
dziala on że mam 2 selecty, jeśli wybiore cos w 1 to w 2 pojawiają się pod działy..
Gdzie tutaj jest nazwa tego 2 select , chciałbym wychwicić wartość i potem odczytać w plliku do którego się odnosi.
Myślałem że to jest ten stage2 - niestety nie jest
