>  var o = $("#original-fields"), n = $("#new-fields");
>  if (o != n) { // <-- BRICK WALL
>   someAJAXFunctionThatSavesTheFieldsThatChanged();
>  }

> How can I compare the #original-fields data with the #new-fields
> data?  As it is, the two always differ; I assume this is because they
> are different objects.

You could JSON.stringify() the two and see if they are the same
string. Otherwise it might be more efficient to set a "dirty" flag
when any of the fields are changed.

Reply via email to