I have a form that has the ability to enter measurements for:
- Width and height
- Width
- Height
And I have two div containers that I hide / show depending on which of the three options is selected:
<div class="editor-field" id="width-container">
@Html.EditorFor(model => model.Width)
@Html.ValidationMessageFor(model => model.Width)
</div>
<div class="editor-field" id="height-container">
@Html.EditorFor(model => model.Height)
@Html.ValidationMessageFor(model => model.Height)
</div>
, , , , , data- * . CustomAttribute , , jquery, , . , 0 , , , .
EDIT:
, , "" , , , div : none