21
Answers

Clicking radio button make control visible/hidden

Ask a question
vidhya

vidhya

11y
8.1k
1

When radio button is selected, i need to make visible of the  textbox for DisplayStart,DisplayClose. If i unselect it, it should be hidden.

<div>   

      @Html.RadioButtonFor(model => model.MakeTestAvailable, "ScheduleDisplayDate", false) ScheduleDisplayDate 

</div>

  <div class="grid-12-12">
                                @Html.LabelFor(m => m.DisplayStart)
                                @Html.TextBox("DisplayStart", (Model.DisplayStart), new { @class = "date" })
                            </div>
                              <div class="grid-12-12">
                                @Html.LabelFor(m => m.DisplayClose)
                                @Html.TextBox("DisplayClose", (Model.DisplayClose), new { @class = "date" })
                            </div>

Answers (21)