Skip to main content

Bug Tracker

Side navigation

#11144 closed bug (wontfix)

Opened January 09, 2012 06:05PM UTC

Closed January 11, 2012 03:56PM UTC

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

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

Attachments (0)
Change History (1)

Changed January 11, 2012 03:56PM UTC by dmethvin comment:1

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().