Bookmark Topic Watch Topic
  • New Topic

Add styleclass on a button when it is Enable/Disable

 
Sam Saha
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Report post to moderator
We have two different styleclass(commandExButton, commandExButtonDisabled). "commandExButton" class applies for all button. I wanted to apply "commandExButtonDisabled" class only when the button is disable.

Now all the time(Enable/Disable) the letters of the button are grey because the class "commandExButtonDisabled" does not remove when the button becomes Enable. . I am not sure how to remove commandExButtonDisabled class to disaplay the letters of the button white(commandExButton). I am using jquery for that. I would appreciate if someone can help me on this as I am new in jquery. Thank you very much.

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Do not repost the same question: http://www.coderanch.com/t/494093/HTML-JavaScript/Change-color-button-when-it

Eric
 
    Bookmark Topic Watch Topic
  • New Topic