Garima Bansal

Garima Bansal

  • 1k
  • 694
  • 41.3k

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)