我使用這個現有的DOM元素:,當它不應該.live工程和.bind不起作用它應該
function questionsForm() {
$("form[name='qc']:last").bind("focus", newTextLine);
}
,它不工作,但是當我更換.bind
與.live
它的工作原理 這是那裏的手柄是假設的工作HTML:
<body>
<div id="screen">
<div id="form">
<div id="insertQuestions">
<form id="qc" name="qc">
<h2>Create New Question!</h2>
<div id="question">Question: <input type="text" name="Question" /></div><!--question-->
<input type="submit" value="Submit" />
爲什麼呢? jQuery 1.6
什麼jQuery版本? – Neal 2011-05-27 14:59:03
jQuery 1.6,更多字符發佈的問題.. :) – ilyo 2011-05-27 15:01:47