C#/ASP.NET/JS - onclick event shows row, postback hides row
<pre><code>rbnResubmission.Items.FindByValue("Yes").Attributes.Add("onclick", "getCheckedRadioFieldResubmission(this)");
rbnResubmission.Items.FindByValue("No").Attributes.Add("onclick", "getCheckedRadioFieldResubmission(this)");
</code></pre>

<p>So I have these click events for showing rows in a table - that part works fine.</p>

<p>Here's an example of what the code does (I'm not showing the "No" option)</p>

<pre><code>function getCheckedRadioFieldResubmission(radio){
    if(radio.value == "Yes"){
         document.getElementById('&lt;%=ApprovingInstituteRow.ClientID%&gt;').style.display ="block";
         document.getElementById('&lt;%=ApprovalNumberRow.ClientID%&gt;').style.display ="block";
         document.getElementById('&lt;%=IRBApprovalRow.ClientID%&gt;').style.display ="block";
         document.getElementById('&lt;%=ExpectedDateRow.ClientID%&gt;').style.display ="none";
     }
}
</code></pre>

<p>The form needs to go through validation, and if there's any problems, because the event to show these rows only happens from "onclick" - they will disappear upon postback.  what can I change to make them appear permanently?</p>
