$(document).ready(function() {
$('.note_edit').editable( site_url+'forms.php?do=edit_note', {
indicator : '<img src="images/icons/loading10.gif">',
name : 'note',
cancel : 'Cancel',
submit : 'OK'
});
});
</script>
<div class="inner">
<div class="note_edit" id="<?php echo $info->id;?>"><?php echo (isset($info->note)) ? $info->note : "Click here to add some notes";?></div>
</div><!--ends .inner -->
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Looking at the demos of jeditable, it appears that their server always returns the value that was entered. Perhaps it populates the element with whatever is returned by the server, and if nothing is returned it defaults to "Click to edit"?
That's what this piece of code in the jeditable lib appears to be doing:
Open in new window
Specifically this block:
Open in new window
settings.placeholder defaults to "Click to edit".
Open in new window