Garima Bansal

Garima Bansal

  • 865
  • 668
  • 38.4k

show and hide when radio button is clicked

Jan 5 2024 11:07 AM

I have a radio button 

 @Html.RadioButtonFor(model => model.flag, "RA", htmlAttributes: new { @id = "Roflag2", })
    Call for Addl. Particulars   

and a div

<div class="row" id="callfor">
                        
                    </div>

IF radio button is clicked then this div shown otherwise hide,

How can i do this?


Answers (3)