javascript - Select box not returning expected value -
i have form display different options depending on first select box. if option 1 selected second dropdown shown option pre selected. if option 2 selected different dropdown 2 options shown. the 2 new dropdowns have same id , name passing option through backend keeps returning wrong values. here jsbin <p class="input_title">i use:</p> <select name="js-rp-use" class="signup-select js-rp-use" id="rp-use" class="signup-select"> <option value="">select plan</option> <option value="solo">manage own items</option> <option value="other">manage others items</option> </select> <div class="js-rentpro-plan-solo"> <p class="input_title">system plan:</p> <select name="plan_id" id="plan_id" class="signup-select"> <option value="-1">select plan</...