How To Trigger jEditable Using An External Link
erics, Posted July 4th, 2011 at 5:09:04pm
Some example HTML:
1 2 |
<div class="edit" id="unique_id">Editable text</div> <a href="#" class="edit_trigger">Edit me!!</a> |
The jQuery:
1 2 3 4 5 6 7 8 |
/* Bind Jeditable instances to "edit" event. */ $(".edit").editable("http://www.example.com/save.php", { event : "edit" }); /* Find and trigger "edit" event on correct Jeditable instance. */ $(".edit_trigger").bind("click", function() { $(this).prev().trigger("edit"); }); |
Here is the original post: http://groups.google.com/group/jquery-en/browse_thread/thread/33c18dcf32276c89/7711363c7496fcb3?hide_quotes=no
Leave Your Comment
All fields marked with "*" are required.