Modify ↓
Ticket #10102 (closed bug: cantfix)
.Select event on ReadOnly textarea dosen't fire callback function.
| Reported by: | ilcesco@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | event | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
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