我在我的应用程序中使用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