Powinno być tak jak wybiorę w pierwszej pozycji nie wiem w drugiej 0,4 bar oraz siła pchająca 5 powinnień wskoczyć w 4 być D12 a niestety tak nie jest

http://pneumaticon.pl/selet/index.php
<head> <script type="text/javascript"> var categories = []; categories["startList"] = ["8","10","12","16","nie wiem"] categories["nie wiem"] = ["0,3 bar","0,4 bar","0,5 bar","0,6 bar","0,7 bar","0,8 bar","0,9 bar","1,0 bar"]; categories["0,3 bar"] = ["4","6","10","15","25"]; categories["0,4 bar"] = ["5","8","13", "19","32"]; categories["5"] = ["D12"]; categories["0,5 bar"] = ["6", "10", "15", "24"]; categories["0,6 bar"] = ["7", "12", "19", "30"]; categories["0,7 bar"] = ["8", "14", "22", "35"]; var nLists = 4; // number of select lists in the set function fillSelect(currCat,currList){ var step = Number(currList.name.replace(/\D/g,"")); for (i=step; i<nLists+1; i++) { document.forms['tripleplay']['List'+i].length = 1; document.forms['tripleplay']['List'+i].selectedIndex = 0; } var nCat = categories[currCat]; var nOption = document.createElement('option'); nOption.appendChild(nData); currList.appendChild(nOption); } } function init() { fillSelect('startList',document.forms['tripleplay']['List1']) } navigator.appName == "Microsoft Internet Explorer" ? attachEvent('onload', init, false) : addEventListener('load', init, false); </script> </head> <body> <form name="tripleplay" action=""> Srednica Tloka <select name='List1' onchange="fillSelect(this.value,this.form['List2'])"> <option selected>Wybierz</option> </select> Cisnienie <select name='List2' onchange="fillSelect(this.value,this.form['List3'])"> <option selected>Wybierz</option> </select> Teoretyczna sila pchajaca <select name='List3' onchange="getValue(this.value, this.form['List4'].value, this.form['List2'].value)"> <option selected >Wybierz</option> </select> Srednica Silownika <select name='List4' onchange="getValue(this.value, this.form['List3'].value, this.form['List3'].value, this.form['List2'].value)"> <option selected >Wybierz</option> </select> </form> </body>