Bug Tracker

Opened 8 years ago

Closed 8 years ago

#11144 closed bug (wontfix)

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

Reported by: slawomir.demichowicz@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

Try following code:

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

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