Side navigation
Ticket #3720: jquery_test.html
File jquery_test.html, 0.6 KB (added by davidserduke, December 18, 2008 05:45AM UTC)
test case
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Tester</title>
<style type="text/css">
#container { background:yellow; width:200px; }
</style>
<script type="text/javascript" src="../jquery.js"></script>
<script type="text/javascript">
$(function () {
$("button:first").click(function () {
$("form:first").submit();
});
});
</script>
</head>
<body>
<button>Do It</button>
<form name="f" action="#" method="get">
<input name="t" type="text" />
</form>
</body>
</html>
Download in other formats:
Original Format
File jquery_test.html, 0.6 KB (added by davidserduke, December 18, 2008 05:45AM UTC)
test case
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Tester</title>
<style type="text/css">
#container { background:yellow; width:200px; }
</style>
<script type="text/javascript" src="../jquery.js"></script>
<script type="text/javascript">
$(function () {
$("button:first").click(function () {
$("form:first").submit();
});
});
</script>
</head>
<body>
<button>Do It</button>
<form name="f" action="#" method="get">
<input name="t" type="text" />
</form>
</body>
</html>