problem in enabling disabled checkbox using JavaScript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssonuswarna
    New Member
    • Apr 2012
    • 1

    #1

    problem in enabling disabled checkbox using JavaScript

    I am trying to disable and enable a checkbox from javascript.
    >
    The problem is that if the checkbox starts out as:
    >
    Code:
    <input id="Override" type="checkbox" name="Override"/>
    >
    I can change it back and forth with no problems.
    using disabled = true or disabled = false
    >
    If I start out as:
    >
    Code:
    <input id="Override" type="checkbox" name="Override" disabled="disabled"/>
    >
    I can never enable it again using the above statements.
    Last edited by gits; Apr 12 '12, 11:13 AM. Reason: added code tags
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    you didn't post the related JavaScript code - could you please do so, so that we can have a look at it to see where the issue might occur?

    Comment

    Working...