다른 버튼을 클릭 할 때 값을 편집 할 수있는 jquery 플러그인이 실제로 문서화되어 있습니다.Jeditable을 사용하여 편집 된 값 저장
Jeditable은 아직 내가 발견 한 것 중 가장 가까운 것이지만 테스트 할 때조차도이를 저장하는 방법을 모르겠습니다. 정말 빠른 값을 반환합니다.
내 PHP 스크립트에 대해이 작업을 사용하고 있습니다 :
function editprofile()
{
$this->input->post('value');
}
이 내 JS 스크립트는 :
<span id="city" class="detail">Philadelphia</span>
<a href="javascript:;" class="edit">Edit</a>
고정 : PHP를해야
$("a.edit").live('click', function(){
$(this).parent("li").find("span.detail").editable('profile/editprofile',
{
indicator : 'Saving...',
submit : 'OK',
tooltip : 'Click to edit...'
});
});
이 내 HTML입니다 be :
echo $this->input->post('value');
서버 측 코드를 확장 할 수 있습니까? – voyager