Side navigation
Ticket #6983: jquery_ie6_bug.html
File jquery_ie6_bug.html, 0.6 KB (added by jasontconnell, September 01, 2010 09:11PM UTC)
js to reproduce IE6 selector bug
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var f2 = $("#form2 #test");
var test = $("#test");
alert(f2.val());
alert(test.val());
});
</script>
</head>
<body>
<form id="form1" name="form1" action="">
<input type="text" id="test" name="test" value="test in form 1" />
</form>
<form id="form2" name="form2" action="">
<input type="text" id="test" name="test" value="test in form 2" />
</form>
</body>
</html>
Download in other formats:
Original Format
File jquery_ie6_bug.html, 0.6 KB (added by jasontconnell, September 01, 2010 09:11PM UTC)
js to reproduce IE6 selector bug
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var f2 = $("#form2 #test");
var test = $("#test");
alert(f2.val());
alert(test.val());
});
</script>
</head>
<body>
<form id="form1" name="form1" action="">
<input type="text" id="test" name="test" value="test in form 1" />
</form>
<form id="form2" name="form2" action="">
<input type="text" id="test" name="test" value="test in form 2" />
</form>
</body>
</html>