When I say the default values are getting reset, I don't mean that on the postback the textbox values are getting rebinded etc. I mean that the client side element.defaultValue is getting reset to whatever is currently in the control. Here's what's happening
Page gets loaded initially.
An empty textbox gets created, so the element.defaultValue = ''
Then I enter text into the textbox. Textbox = 'some text'
Then I do an action that causes a postback. When returning from the server the element.defaultValue goes from = '' to = 'some text'.
So now when I run my function to see if the form has changed it says it hasn't because the defaultValue now = 'some text' and the current value = 'some text'. Does this make sense?
Thanks for the response.