Hi, I am trying to disable a button (I have 2 buttons in the Form - one to

Hi,
I am trying to disable a button (I have 2 buttons in the Form - one to "Proceed" and one to "Cancel"). I have a radio button which if it is "Yes", then it should make the Confirmation Button disabled, until a certain text-box field is full-filled (not empty). If the radio button is "No", then it shouldn't disable the Confirmation button (in this case, validation of the text field is not required). I am trying to disable the button with JavaScript code on the Radio Button (after checking the value of the radio button, the code looks like this):
"document.getElementsByName("Confirm")[0].disabled=true; "
I have also tried this:
"document.getElementById("Confirm").disabled=true;"
But none of them works...
Any suggestion would be very appreciated. Thank you in advance......

OriginalPostID-62085

OriginalPostID-62085

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data