0
フィールドのインプレース更新にjquery-in-place-editorを使用しています。(jquery-in-place-editorを使用して)正しいajax paramデータを送信できません
このためのHTMLマークアップは
<span class="profile-txt" id="editme1"><?php echo $_SESSION['pupil_postcode']; ?></span>
であると私は編集とAjaxのパラメータは、古い値を持つ新しい値を入力するたびに使用jqueryのは
$("#editme1").editInPlace({
value_required: true,
url: "editPupil.php",
params:"postcode="+$("#editme1").html(),
success: function(responseText){
alert(responseText);
//if(responseText=="Invalid Postcode"){
//alert(responseText);
//document.getElementById("editme1").innerHTML=postcode;
//}
}
});
です。 たとえば デフォルト値はka10 7dwです。これをKA10 6DBに変更すると、郵便番号パラメータも古い値になります。
あなたは '$( "#のeditme1")を使用して試みることができるのval()'の代わりに '$( "#のeditme1")のHTML()。。 ' –