Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jeditable inserts 'Click to edit' after saving?

My code is:

$(document).ready(function() {
            $('.post_title').editable('editposttitle.php', {
                cancel    : 'Cancel',
                        submit    : 'OK',
                indicator : 'Saving...',
            });
        });

When saving text the text'Click to edit' is inserted into my element? instead of the saved text?

Any ideas?

Thanks!

like image 698
Rigobert Song Avatar asked Jan 23 '23 17:01

Rigobert Song


1 Answers

Sorry, found where I was going wrong!

I didn't echo the new value in my php.

like image 156
Rigobert Song Avatar answered Jan 31 '23 03:01

Rigobert Song