The thing starts from my previous question: Using jQuery is it possible to compare two attributes in a selector? I mean something like:
$(\'element[atribute1!=at
No. If you look through jQuery's documentation, you'll see there's no such selector.
Also defaultValue is a property, not an attribute.
defaultValue
You can do this:
var changed = $('input').filter(function() { return this.value !== this.defaultValue; });