IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 2 replies
  • Latest Post - ‏2010-10-19T06:44:08Z by SystemAdmin
SystemAdmin
SystemAdmin
4672 Posts

Pinned topic Disabling checkbox in Firefox

‏2010-09-22T10:11:58Z |
Hi All,
I need to disable a checkox when I click a link. I am using the below javascript code
document.getElementById("Conditions").disabled=true; to disable the checkbox.
In IE it is working fine but in Firefox the checkbox is not getting disabled.
I tried with document.getElementsByName("Condition")[0].disabled=true; also but no luck.
Can anyone please help in this.
Thanks in Advance
Updated on 2010-10-19T06:44:08Z at 2010-10-19T06:44:08Z by SystemAdmin
  • phalgun
    phalgun
    1 Post

    Re: Disabling checkbox in Firefox

    ‏2010-09-23T11:57:32Z  
    Instead of "document.getElementById("Conditions").disabled=true" this, try "document.getElementById("Conditions").setAttribute("disabled","true")"

    Regards
    Phalgun
  • SystemAdmin
    SystemAdmin
    4672 Posts

    Re: Disabling checkbox in Firefox

    ‏2010-10-19T06:44:08Z  
    Its working fine.Thank you.