rbnResubmission.Items.FindByValue("Yes").Attributes.Add("onclick", "getCheckedRadioFieldResubmission(this)");
rbnResubmission.Items.FindByValue("No").Attributes.Add("onclick", "getCheckedRadioFieldResubmission(this)");
So I have these click events for showing rows in a table - that part works fine.
Here's an example of what the code does (I'm not showing the "No" option)
function getCheckedRadioFieldResubmission(radio){
if(radio.value == "Yes"){
document.getElementById('<%=ApprovingInstituteRow.ClientID%>').style.display ="block";
document.getElementById('<%=ApprovalNumberRow.ClientID%>').style.display ="block";
document.getElementById('<%=IRBApprovalRow.ClientID%>').style.display ="block";
document.getElementById('<%=ExpectedDateRow.ClientID%>').style.display ="none";
}
}
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?