I have a page that displays an error div with a class of 'validation-errors
' if the user enters an incorrect value into a textbox.
Is there a way to execute a javascript function (it adds a CSS property to a button) when the error div is displayed? The function is currently called in window.onload
.
Is there a way to execute the javascript function if window has changed / element added?