Side navigation
Ticket #5970: ie_change_event_with_focus.html
File ie_change_event_with_focus.html, 0.5 KB (added by tinyfly, March 03, 2010 05:32PM UTC)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head><title>IE Change Event Test</title></head>
<body>
<input type="text" name="test1" id="test1" />
<p></p>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$("input").focus().change(function () {
$("p").append("<br>Value: "+ $(this).val());
});
</script>
</body>
</html>
Download in other formats:
Original Format
File ie_change_event_with_focus.html, 0.5 KB (added by tinyfly, March 03, 2010 05:32PM UTC)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head><title>IE Change Event Test</title></head>
<body>
<input type="text" name="test1" id="test1" />
<p></p>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$("input").focus().change(function () {
$("p").append("<br>Value: "+ $(this).val());
});
</script>
</body>
</html>