Sometimes in applications forms are submitted without any changes being made. This can of course be a waste of bandwidth and processing time on the server. This very simple MooTools class checks the values in a form to see if its values have been modified and returns a result of true or false.

DirtyForm Class

The class is located on here on github.

Examples

All form fields in a single form with two fields excluded.

 

One Response to Checking Forms for Modifications

  1. Cyril says:

    Dear Kevin

    Thanks a lot for this DirtyForm Class which is really cool to use. Unfortunately I’d have one more option requirement that this class seems not to offer for now.

    My problem is that I’m using an ckEditor which doesn’t contain any no form tags. Is there a way to select specific tags the dirtyForm class should listen to?

    Thx in advance for your support

    Best regards,
    Cyril

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">