复选框与Textarea的jQuery事件绑定有问题

时间:2013-10-18 10:52:26

标签: html internet-explorer google-chrome jquery

我遇到了Textarea的jQuery事件绑定问题,导致复选框检查不起作用。

//jQuery Part
jQuery("#content").on("click change keypress", "textarea", function(e){
   ...
}

和HTML部分

<p>
    <textarea name="ele[6a]" id="txt_6a" style="height: 17px; -ms-overflow-x: auto; -ms-overflow-y: hidden; max-height: 17px; box-sizing: border-box;" cols="100">Test</textarea>
    <input name="ele" class="file" id="ele" onchange="myUpload(this,id);" type="file" size="40">
    <input name="ele[6a87]" class="checkbox" id="p6a" type="checkbox" value="1">
</p>

现在,当我将<p>元素 置于<{1}} DIV的 之上时,复选框正在运行,但在#content DIV下它不起作用。

有什么想法吗?

注意

此问题同时发生在#contentIE*

0 个答案:

没有答案
相关问题