for now, steven, i took your suggestion that compare with its defaultValue one by one, thx :-)
2009/7/30 黄旭 <[email protected]> > yea, to compare with the old value is a good way, but the fact is there > will be many text fields generated on the UI, and u dunno which one was > evaluated but never got focus(like $.val(...)) > > but anyway the value was changed, is there some easy way for me to catch > this change event? > > Thanks, > Daniel > > 2009/7/29 Steven Yang <[email protected]> > > please correct me if i am wrong >> >> this is how onchange behaves >> >> what you have to do is save the old values somewhere then compare with it >> when you expect a change, probably in the onblur event >> or you can compare with the defaultValue if you only want to know if the >> value changed since the page loaded >> >> >> >> >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
