Hello All,
I have a FORM1 that contains two controls, each control has two buttons (previous, next). One control is to present these two buttons on top and the other control to present same controls at the bottom of the page.
The FORM tag triggers a javascript function: onsubmit="disableSendButtons(event);"
My disableSendButtons function looks like this:
function disableSendButtons() {
var strSrcElementID = event.srcElement.id;
if (strSrcElementID == “<%=WizardBarTop.ButtonPrevious.ClientID%>” || strSrcElementID == “<%=WizardBarBottom.ButtonPrevious.ClientID%>”) {
return false;
}
// then put rest of code here to change the CAPTION of the next button
...
}
However, my issue is that strSrcElementID always retrieves "FORM1" and not the name of my buttons: WizardBarTop_btnPrevious and WizardBarBottom_btnPrevious.
Any ideas? 
Thanks in advance for your time.
|