Opened 11 years ago
Closed 11 years ago
#10102 closed bug (cantfix)
.Select event on ReadOnly textarea dosen't fire callback function.
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
sample code:
<textarea id="textareaElement" readonly="readonly">lorem ipsum</textarea> <script type="text/javascript"> $('#textareaElement').select(function(){ alert('HELLO?'); }); </script>
In Chrome and Safari: The callback function isn't called when textAreaElement have readonly="readonly" attribute.
In Firefox: It works
Change History (1)
comment:1 Changed 11 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Resolution: | → cantfix |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
It's not caused by jQuery, here is the example in bare DOM/JS:
http://jsfiddle.net/dmethvin/JJAYR/
I wasn't able to find any discussion relating to special handling of the
select
event on read-only text inputs, so I assume this is a bug in the browsers. You'll want to report it to them.http://www.w3.org/TR/html4/interact/scripts.html#adef-onselect