Javascript works in IE but not in Chrome
问题 I'm trying to detect text, textarea and dropdown changes via javascript, so upon window unload, the browser will prompt that you have unsaved changes. My code works perfectly with IE but it is really unstable in Chrome. Here's my code. var ctr = 1; var isFirstLoad = true; function propertyChangedByCode() { ctr = 0; propertyChanged() } function propertyChanged() { $('[id$=SaveButton]').removeAttr("disabled"); $('[id$=SaveButton]').removeAttr("class"); $('[id$=SaveButton]').addClass("btn btn