In my page there will be 2 select box [item, and sub-item]
<select id="item" name="item">
<option value="1">Desktop</option>
<option value="2">Laptop</option>
</select>
<select id="sub_item" name="sub_item">
</select>
When ever the user changes the item select-control, an event will send the selected-value to the server using jQuery and the server page will output something like this
DELL,39000
HP,32000
And the jQuery should add those values to the sub-item select box so it changes to
<select id="sub_item" name="sub_item">
<option value="39000">Dell</option>
<option value="32000">HP</option>
</select>
Problem: I can't code how to add/reset the select control for the sub-item
I don't have any code to share. If you want my SQL or JAVA code I can post it, but I think the backend has nothing to do with the jQuery modifying the sub-item's value