.live在不应该使用的地方起作用,而.bind在应该去的地方不起作用

|| 我正在现有的DOM元素上使用它:
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     
已邀请:
        
bind
仅添加事件处理程序。
trigger
运行它。
live
都添加了处理程序并运行它 边注 为什么不按表单的ID选择呢?
$(\"form#qc\").bind(\"focus\", newTextLine);
    

要回复问题请先登录注册