How to determine when the text of an html element is changed
<p>I have an error message like this:</p>

<pre><code>&lt;span class="errorMessage"&gt;Your input sucks!&lt;/span&gt;
</code></pre>

<p>and I need to determine when it changes. the validation framework I'm using sets the text when there's an error and removes it when it's complete. I'm hoping to tap into that by watching for changes to the text property of the element using jquery. Any idea of how to go about doing this?</p>

<p>Thanks!</p>
