Skip to main content

Bug Tracker

Side navigation

#10102 closed bug (cantfix)

Opened August 20, 2011 01:15PM UTC

Closed August 20, 2011 06:37PM UTC

.Select event on ReadOnly textarea dosen't fire callback function.

Reported by: ilcesco@gmail.com 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

Attachments (0)
Change History (1)

Changed August 20, 2011 06:37PM UTC by dmethvin comment:1

component: unfiledevent
priority: undecidedlow
resolution: → cantfix
status: newclosed

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