How to tr visiable for radio button is checked in mvc???
i am using two radio button 1.state: and 2.Out of state then if select state then visible show below tr ....if select out of state then hide tr in mvc view using jquery or etc..plz help me.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Vinay SinghRank #604 · 4K reputationPosted Aug 11, 2016, 12:03 AM EDT
Maharudra GadekarRank #5,163 · 309 reputationPosted Aug 11, 2016, 3:51 AM EDT
<td class="form-group">
@Html.LabelFor(model => model.stdfrm_domicilestate, " Candidate is Domicile of", htmlAttributes: new { @class = "control-label col-md-2" })
</td>
<td class="col-md-10">
Maharashtra:@Html.RadioButtonFor(Model => Model.stdfrm_cat_msos, "M")
Out of maharashtra:@Html.RadioButtonFor(Model => Model.stdfrm_cat_msos, "O")
</td>
</tr>
<tr>
<td>
@Html.LabelFor(model => model.stdfrm_domiciletype, " Domicile State(For Outside Maharashtra Candidates) ", htmlAttributes: new { @class = "control-label col-md-2" })
</td>
<td>
@Html.DropDownListFor(Model => Model.state_id, new SelectList(ViewBag.statelist, "StateID", "StateName"), "--select state--", new { id = "ddlName" })
</td>
</tr>