jeditable only submit if changed

jeditable only submit if changed

d7a7z7e7dd7a7z7e7d Posts: 8Questions: 0Answers: 0
edited March 2011 in General
How would I compare the current cell value to the edited one and only submit it if it's changed? I'm using jeditable with "onblur" = "submit" and I want to prevent it from submitting if the value wasn't changed.

Thanks in advance!

Replies

  • d7a7z7e7dd7a7z7e7d Posts: 8Questions: 0Answers: 0
    I fixed this by adding the following:

    [code]
    "onsubmit": function (settings, original) {
    if (original.revert == $('input',this).val()) {
    original.reset();
    return false;
    }
    }
    [/code]
This discussion has been closed.