I need help figuring the code in my fiddle. I have 3 dropdown boxes and 1 input box. What I want to do is,
Box 1: Show the brand
Box 2: Show the model based on brand
Box 3: Parts available for repair (screen, battery, etc... it varies depends on the brand)
Box 4: Inputbox that shows the price.
Every phone part has its own price, so it should only populate the input box with the price once the brand, model, and the part has been selected.
So basically, when you select Apple -> iPhone 5 -> Screen, the input box should display the price for the screen, and so on...
I just cant figure out how to make this right.
I had to show a code in order to attach a fiddle.
<select name="devicelist" id="devicelist" style="width:350px;" onchange="changecat1(this.value);">
<option value="" disabled selected>Select Brand</option>
<option value="A">Apple</option>
<option value="B">Blackberry</option>
<option value="G">Google</option>
<option value="H">Huawei</option>
<option value="L">LG</option>
<option value="M">Motorola</option>
<option value="S">Samsung</option>
</select>
Here's my JSFiddle.