I have 02 DropDownList fields that have the same items to be selected, ie:
- Camera 1
- Camera 2
- Camera 3
- Camera 4
- Camera 5
- Camera 6
Summarizing in large part the registrations that will be carried out, selecting a DropDownList item Side A > > being any one but exemplifying the Camera 4 item the same result of the selected item should reflect in the DropDownList Camera Side B
How to do Javascript so that I can have this field interaction, as this will prevent the user from selecting the same thing in the consecutive DropDownList.
Side A Board
<div class="form-group">
@Html.LabelFor(model => model.CamaraLadoA, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownList("CamaraLadoA", null, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.CamaraLadoA, "", new { @class = "text-danger" })
</div>
</div>
Side B Camera
<div class="form-group">
@Html.LabelFor(model => model.CamaraLadoB, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownList("CamaraLadoB", null, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.CamaraLadoB, "", new { @class = "text-danger" })
</div>
</div>