Skip to main content

Bug Tracker

Side navigation

Ticket #3041: choose.html


File choose.html, 0.6 KB (added by pbcomm, June 18, 2008 05:06AM UTC)

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>

<body>
<select name="choose" id="choose" size="1">
    <option value="start">start</option>
</select>

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load('jquery', '1');</script>
<script type="text/javascript">
jQuery(document).ready(function() {
    var option = document.createElement('option');
    option.text = 'test';
    option.value = 'test';
    jQuery(option).appendTo('#choose');
});
</script>
</body>
</html>

Download in other formats:

Original Format