how to disable and able a button using checkbox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ruky007
    New Member
    • Sep 2012
    • 1

    #1

    how to disable and able a button using checkbox?

    When designing an agreement page and you have 2 checkbox with I accept, and the 2nd I don't accept, how can I code to able the next button when I accept and disable the button when I don't accept?
  • danarj
    New Member
    • Sep 2012
    • 1

    #2
    you can do it from javascript:
    document.getEle mentById('<%= button.ClientID %>').disabled = true;

    or from server side:
    button.Enabled= true;

    Comment

    Working...