<center>
<span class="ReportSubsectionTitle">Report Type</span>
<br />
<html:radio styleId="summary" property="reportOutputStyleID" onclick="doDetail();" value="2" />Pending Funding
<html:radio styleId="detail" property="reportOutputStyleID" onclick="doSummary();" value="1" />Previously Funded
</center>
So, on loading, I want the default option 2 to be selected.
<body topmargin="0" leftmargin="0" rightmargin="0" onload="window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
window.focus();
insertOption('number');
document.achReportCriteria.reportOutputStyleID.value="2";
doDetail();">
I tired \” and even ", but it doesn’t seem to like it.
Here’s the easiest, simplest solution and cleanest solution:
And this function could even be stored in an external JS file, to avoid reloading each time the page is reloaded.