Bug Tracker

Opened 11 years ago

Closed 11 years ago

#11144 closed bug (wontfix)

jQUery live() doesn't work for event "select" doesn't work for inputs on IE8

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:


Try following code:

<!DOCTYPE html>
<div id="blah">
<input id="blah1" value="asdfasdfasdfasdf"/>
<input id="blah2" value="asdfasdfasdfasdf"/>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    $('#blah input').live('select', function(){ alert("I'm alive!");});

Above code should "alert" "I'm alive!" when selecting text in the input box on IE8 but it doesn't. It's related to IE8 not bubbling up select event, but maybe there is workaround for it.

Change History (1)

comment:1 Changed 11 years ago by dmethvin

Resolution: wontfix
Status: newclosed

Yes, the event does not bubble in IE<9. It is a rarely-used event and takes a lot of code to patch bubbling properly, so I have added it to the notes on http://api.jquery.com/on as an event that is not supported for delegation.

Also, .live() is deprecated but the same delegation limits apply to .delegate() and .on().

Note: See TracTickets for help on using tickets.