Briefly: detecting changed form inputs with jQuery

I was working on a project a few months back that required me to detect whether the user had changed the values of HTML form inputs, and prompt them suitably. After a little poking into the defaultValue, defaultSelected and defaultChecked DOM properties, I knocked together a quick jQuery selector.

It’s since worked its way into a number of other projects—this site included—so I thought I’d post it in case anyone is interested or has suggestions for improvements. Share and enjoy :)

At some point, I’ll get around to making it play nice with Zepto as well: it’s not being picked up quite right at the moment…