I have been looking for a really good, well documented jquery plug-in that will let me edit values on click of another button. This plugin is the closest yet, However I am not sure how to get it to save, even in testing. Something really quick that returns the value.
I am using this for my php script:
function editprofile()
{
$this->input->post('value');
}
This is my JS script:
$("a.edit").live('click', function(){
$(this).parent("li").find("span.detail").editable('profile/editprofile',
{
indicator : 'Saving...',
submit : 'OK',
tooltip : 'Click to edit...'
});
});
This is my HTML:
<span id="city" class="detail">Philadelphia</span>
<a href="javascript:;" class="edit">Edit</a>
Fixed: php should be:
echo $this->input->post('value');