On Nov 10, 2008, at 9:02 PM, RyOnLife wrote:
Hello, I am using Jeditable. Currently firing the plugin when the editable div is double clicked. I'd also like to add a text link outside of the editable div, and when clicked, it would make the div editable. Just want to give my users a visual cue for those that aren't yet aware of the ability to double click. Can someone let me know how to do this? Thanks!
There are many ways to do it. But for example If your html is: -cut- <div class="edit" id="unique_id">Editable text</div> <a href="#" class="edit_trigger">Edit me!!</a> -cut- You could do something like: -cut- $(".edit").editable("http://www.example.com/save.php", { event : "edit" }); $(".edit_trigger").bind("click", function() { $(this).prev().trigger("edit"); }); -cut- -- Mika Tuupola http://www.appelsiini.net/