tuupola/jquery_jeditable — pull request #58 by openback (2012-02-25 03:58:20+00:00)
Title: Added idattr setting

I've added another setting called `idattr`. It instructs the plugin to look at a specific attribute for its `id` value. It allowed me to put the id in the `data-model-id` attribute, and use that, since on some of my pages, those ids might conflict when I have more than one model on the page.

$("#differentId").editable("id.php", {
submit : "OK",
idattr: 'data-model-id',
});

And the markup:

Now id will be 3