0

我对 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>元素放在 DIV之外时,#content复选框正在工作,但在该#contentDIV 下它不起作用。

有什么想法吗?

笔记

这个问题在这两个IE*Chrome以及

4

0 回答 0