I'm trying to use Jeditable as an inline editing solution.
The default behavior (click on the element to edit it) works quite well, but I would like to activate an element by clicking on another element.
For example clicking on a.activateEdit will activate the next div.edit (obviously should be done using jQuery selectors).
I've looked into Jeditable docs for this, but couldn't find the right syntax
FYI, the default Jeditable syntax is something along the lines of:
$(document).ready(function() {
$('.edit').editable('http://www.example.com/save.php');
});
*Edit: found a better solution *
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…