Does anyone know a way to detect when a given element's class has changed using JQuery?
I'm using the "simply countable" JQuery plug-in to notify the user of the number of characters entered into a text area. When the user exceeds the allowed number of characters, I would like to disable the "post" button.
Since simply countable changes the assigned CSS class when the limit is reached, my idea was to capture that event so that I could disable the post button, but perhaps there is a better way?
Any suggestions are welcome.
Thanks.