You need to sign in to do that
Don't have an account?
MyGodItsCold
how to set "apex:selectRadio disabled" in javascript?
I have an inputCheckbox, and a selectRadio tag in my VF page. The onclick for the inputCheckbox runs a javascript function to disable the radio button group when the checkbox is unchecked - but I can't seem to get it right. I have id's set for apex:page, apex:form, apex:inputCheckbox. When the onclick function runs, I can detect whether the checkbox is checked because I call
markDirty(this)
where this is the checkbox.
However, when I try:
document.getElementById("page:form:radio").disabled = true;
it's not working.
Obviously, javascript DOM is not my strength. Thanks,
markDirty(this)
where this is the checkbox.
However, when I try:
document.getElementById("page:form:radio").disabled = true;
it's not working.
Obviously, javascript DOM is not my strength. Thanks,
Or are you stuck with using hard coded id?
Seems like a bad hack...I am not sure if i can rely on j_id2 being the same for ever - when I modified some code, it ended up being j_id1.
Is there a way of accessing the table component without this hack?
In the code below, I am using Javascript to make sure only one row can be marked primary distributor. The code where I am trying to create the element id sets the checkbox that was selected at initially (selectChkBox) . deSelectOther allows only one to be selected from there on...