Modify ↓
Ticket #7766 (closed bug: duplicate)
Change Event execute twice in IE8/IE7
| Reported by: | seeds | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.6 |
| Component: | unfiled | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Sample Source
<html>
<head>
<script type="text/javascript" src="js/jquery-1.4.4.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#a01').live('change', function() {
/// $('#a01').change(function() {
var v = $(this).val();
$('#a02').val(v);
$(this).val('xxx'); // not happen change event in FF,Chrome
});
});
</script>
</head>
<body>
<input id="a01" type="text" name="a01">
<input id="a02" type="text" name="a02">
</body>
</html>
input "zzz" to #a01.
- results(FireFox,Chrome): #a01 = xxx, #a02 = zzz
- results(IE8,IE7): #a01 = xxx, #a02 = xxx
Change History
comment:1 Changed 2 years ago by rwaldron
- Status changed from new to closed
- Resolution set to duplicate
comment:4 Changed 2 years ago by seeds
It seems to be different from #5997. jQuery 1.5.1 still has this bug.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
