Side navigation
Ticket #1916: jquery_test.html
File jquery_test.html, 0.7 KB (added by davidserduke, November 29, 2007 05:39PM UTC)
test case (based on description)
<!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 doIt() {
var s = "click!";
$("#adiv").text(s);
$("#sel").html("<option>a</option><option selected>b</option><option>c</option>");
}
$(function () {
$("#doit").click(doIt);
});
</script>
</head>
<body>
<button id="doit">Do It</button>
<select id="sel"></select>
<div id="adiv"></div>
</body>
</html>
Download in other formats:
Original Format
File jquery_test.html, 0.7 KB (added by davidserduke, November 29, 2007 05:39PM UTC)
test case (based on description)
<!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 doIt() {
var s = "click!";
$("#adiv").text(s);
$("#sel").html("<option>a</option><option selected>b</option><option>c</option>");
}
$(function () {
$("#doit").click(doIt);
});
</script>
</head>
<body>
<button id="doit">Do It</button>
<select id="sel"></select>
<div id="adiv"></div>
</body>
</html>