When radio button is selected, i need to make visible of the textbox for DisplayStart,DisplayClose. If i unselect it, it should be hidden.
@Html.RadioButtonFor(model => model.MakeTestAvailable, "ScheduleDisplayDate", false) ScheduleDisplayDate
@Html.LabelFor(m => m.DisplayStart)
@Html.TextBox("DisplayStart", (Model.DisplayStart), new { @class = "date" })
@Html.LabelFor(m => m.DisplayClose)
@Html.TextBox("DisplayClose", (Model.DisplayClose), new { @class = "date" })
21 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 2, 2013, 6:02 AM
$(document).ready(function () {
});
Regards,
Iftikar
Parthiban SPosted May 4, 2015, 8:26 AM
vidhyaPosted Aug 2, 2013, 6:13 AM
Iftikar HussainPosted Aug 2, 2013, 6:13 AM
and then change your script
$(document).ready(function () {
});
Regards,
Iftikar
vidhyaPosted Aug 2, 2013, 6:08 AM
vidhyaPosted Aug 2, 2013, 5:55 AM
still no improvement.
Iftikar HussainPosted Aug 2, 2013, 5:49 AM
Regards,
Iftikar
vidhyaPosted Aug 2, 2013, 5:43 AM
Iftikar HussainPosted Aug 2, 2013, 5:38 AM
Regards,
Iftikar
vidhyaPosted Aug 2, 2013, 5:36 AM
Iftikar HussainPosted Aug 2, 2013, 5:31 AM
Regards,
Iftikar
vidhyaPosted Aug 2, 2013, 5:18 AM
vidhyaPosted Aug 2, 2013, 5:17 AM
@Model.CourseTitle
Iftikar HussainPosted Aug 2, 2013, 5:04 AM
Regards,
Iftikar
vidhyaPosted Aug 2, 2013, 5:01 AM
It never work, i am using like this
Iftikar HussainPosted Aug 2, 2013, 4:49 AM
Regards,
Iftikar
Rajesh BPosted Aug 2, 2013, 4:12 AM
vidhyaPosted Aug 2, 2013, 3:53 AM
Iftikar HussainPosted Aug 2, 2013, 3:43 AM
Regards,
Iftikar
vidhyaPosted Aug 2, 2013, 3:22 AM
No reflect here. it seems to same while check or uncheck.
Iftikar HussainPosted Aug 2, 2013, 2:49 AM
You can do by using jquery
$("#DisplayClose").css("visibility","visible");
$("#DisplayClose").css("visibility","visible");
Regards,
Iftikar