Bug Tracker

Ticket #3041: choose.html

File choose.html, 625 bytes (added by pbcomm, 12 years ago)

http://pbcomm.mine.nu:81/jquery/choose.html

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3<html>
4<head>
5        <title>Untitled</title>
6</head>
7
8<body>
9<select name="choose" id="choose" size="1">
10    <option value="start">start</option>
11</select>
12
13<script type="text/javascript" src="http://www.google.com/jsapi"></script>
14<script type="text/javascript">google.load('jquery', '1');</script>
15<script type="text/javascript">
16jQuery(document).ready(function() {
17    var option = document.createElement('option');
18    option.text = 'test';
19    option.value = 'test';
20    jQuery(option).appendTo('#choose');
21});
22</script>
23</body>
24</html>