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
You can use the jQuery filter() function, like this:
var different = $('input').filter(function() { return $(this).attr('data-default-value') != $(this).val(); });
Then, you can test different.length > 0.
different.length > 0
Here's a full working example: http://jsfiddle.net/us47d/