This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Add styleclass on a button when it is Enable/Disable

 
Sam Saha
Ranch Hand
Posts: 104
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic