vidhya

vidhya

  • NA
  • 324
  • 88.3k

Clicking radio button make control visible/hidden

Aug 2 2013 2:40 AM

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)