Using input from 4 pulldowns in a form to a textbow
I need to be able to get the selected inputs from four different
selections and based on those 4 selections, post a part number in another text field (e21b)within the same form.
var select1 = document.getElementById(“e27”).value;
var select2= document.getElementById(“e26”).value;
var select3 = document.getElementById(“e23”).value;
var select4 = document.getElementById(“e21”).value;
<e21b.option selected = var select5>;
if (select1.value –“101” && select2.value= “201” && select3.value=”330” && select4.value=”401”)
{
Then select5 ===”600-618”;
}
else if (select1.value = 101”’ && select2.value= “201” && select3.value=”330” && select4.value=”410”)
{
Then select5 =”600-628”;
}
else if (select1.value = 110”’ && select2.value= “201” && select3.value=”330”” && select4.value=”410”)
{
Then select5 ===”600-638”;
}
else if (select1.value = “120” && select2.value= “201” &&select3.value=”330” && select4.value=”401”)
{
Then select5 ===”600-658”;
}
else if (select1.value = “110” && select2.value= “210” &&select3.value=”34” && select4.value=”401”)
{
Then select5 ===”600-690”;
}
Bookmarks