我在我的應用程序中使用JQuery,CakePHP和Mysql。 我有一個類似下面的代碼,其中的說明是一個文本框,當我鍵入它時,它將顯示在顯示面板中。JQuery中的更改和鍵盤事件處理程序
$(".TextFieldSettings #instructions").keyup(function(){
instr=$(".TextFieldSettings #instructions").val();
$("#displayPanel .fieldInstructions"+counter).html(instr).show();
});//Text field instructions keyup
This Code Works well。
編輯: 如果我更改了文本框指令中的值,則必須在顯示面板中顯示該鍵值。同時我需要instr中的最終更改值插入到數據庫中。 我該怎麼做?
你能澄清你在問什麼嗎?我很難過... – 2009-06-16 07:34:06