【发布时间】:2011-05-27 14:55:47
【问题描述】:
我在现有的 DOM 元素上使用它:
function questionsForm() {
$("form[name='qc']:last").bind("focus", newTextLine);
}
它不起作用,但是当我用 .live 替换 .bind 时它起作用了
这是句柄应该工作的 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 1.6,更多字符发布问题.. :)