Bug Tracker

Modify

Ticket #6350 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

Live change event works improperly for file inputs in IE8/7

Reported by: em286 Owned by:
Priority: undecided Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: IE live change file Cc:
Blocking: Blocked by:

Description

Assume we have the following code:

<input type="file" id="works" /> <input type="file" id="dsntwork" />

<script type="text/javascript"> <![CDATA[ $('#works').change(function(){alert("works")}); $('#dsntwork').live('change', function(){alert("works")}); ]]> </script>

When you pick a file for '#works' element you see the alerted text immediately. But when you pick the file for '#dsntwork' element you won't see any alerts untill you blur the element.

Change History

comment:1 Changed 3 years ago by safeldm

I'm having the same issue although with an input select, if i use .change it works if i use .live('change',... it doesn't. moving the cursor off the select does not cause it to fire. Issue occurs in IE 8.

comment:2 Changed 3 years ago by snover

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #5997.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.