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.
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.
Maharudra GadekarPosted Aug 11, 2016, 7:51 AM
<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>
Vinay SinghPosted Aug 11, 2016, 4:03 AM