-
1
- #1
I have several submit buttons with the same name:
submitFunction() is the following code
When a button is clicked only the first button names Process is disabled. Is there a way to make all the buttons disable?
Michael Brennan-White
New Hampshire Treasury Department
Code:
<input name="Process" type="submit" value="Export To HRS" onClick="submitFunction(1);" >
<input name="Process" type="submit" value="Display in Excel" onClick="submitFunction(2);">
<input name="Process" type="submit" value="Report" onClick="submitFunction(3);" >
submitFunction() is the following code
Code:
function submitFunction(i) {
if (i==1)
//document.frmOutstanding.action= "Export2Excel.cfm";
{alert('This process will take several minutes and will commence after you click the OK button. Do not browse off this page until Export Confirmation is Displayed.');
document.frmOutstanding.action= "HRSExport.cfm";
document.getElementById("Process").disabled="true";
}
When a button is clicked only the first button names Process is disabled. Is there a way to make all the buttons disable?
Michael Brennan-White
New Hampshire Treasury Department