Jeditable - Activate edit of X by clicking on Y

后端 未结 4 1302
野趣味
野趣味 2020-12-11 01:36

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

4条回答
  •  没有蜡笔的小新
    2020-12-11 01:49

    Ok, Ata's answer didn't quite work but it did set me on the right path:

    $(document).ready(function() {
        $('.edit').editable('http://www.example.com/save.php');
        $("a.clickme").click(function(){
              $('.edit').click();
       });
    });
    

提交回复
热议问题