A flag that has a problem with jQuery event binding for Textarea

I have a problem binding the jQuery event for Textarea, and this causes the checkbox check to not work.

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

and HTML Part

 <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> 

Now, when I put above the <p> element outside of #content DIV, then the checkbox works, but under that #content DIV it doesn't work.

Any ideas on this?

Note

This issue occurs in both IE* and Chrome , as well as

0
source share

All Articles