<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>
<title>Sandbox</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
body { background-color: #000; font: 16px Helvetica, Arial; color: #fff; }
</style>
<script>
$(function() {
$('#btnAdd').click(function() {
var $sortable = $("#sortable");
$sortable.children().eq(1).clone().text( $('#ContentList').val() ).appendTo($sortable);
var $list = $('#ContentList');
$list.children().eq(0).attr('selected', true);
});
});
</script
</head>
<body>
<select name="sportTypes" id="ContentList" class="form-control">
<option value="Ballooning">Ballooning</option>
<option value="Beach basketball">Beach basketball</option>
<option value="Beach handball">Beach handball</option>
<option value="Beach rugby">Beach rugby</option>
<option value="Beach soccer">Beach soccer</option>
<option value="Beach volleyball">Beach volleyball</option>
<option value="Biathlon">Biathlon</option>
<option value="Bicycle Motocross or BMX">Bicycle Motocross or BMX</option>
<option value="Canoeing">Canoeing</option>
<option value="Cross country skiing">Cross country skiing</option>
<option value="Cross-country mountain biking">Cross-country mountain biking</option>
<option value="Cross-country rally">Cross-country rally</option>
<option value="Cross-country running">Cross-country running</option>
<option value="Cross-country skiing">Cross-country skiing</option>
<option value="Cycling">Cycling</option>
<option value="Cyclo-cross">Cyclo-cross</option>
<option value="Decathlon">Decathlon</option>
<option value="Dodgeball">Dodgeball</option>
<option value="Drifting">Drifting</option>
<option value="Football">Football</option>
<option value="Hockey">Hockey</option>
<option value="Ice Hockey">Ice Hockey</option>
<option value="Ice Racing">Ice Racing</option>
<option value="Ice skating">Ice skating</option>
<option value="Ice Speedway">Ice Speedway</option>
<option value="Ice yachting">Ice yachting</option>
<option value="Marathon">Marathon</option>
<option value="Motocross">Motocross</option>
<option value="Mountain Biking">Mountain Biking</option>
<option value="Mountain unicycling">Mountain unicycling</option>
<option value="Mountaineering">Mountaineering</option>
<option value="Nordic combined">Nordic combined</option>
<option value="Nordic skiing">Nordic skiing</option>
<option value="Obstacle variations">Obstacle variations</option>
<option value="Off-Road">Off-Road</option>
<option value="Off-road racing">Off-road racing</option>
<option value="Orienteering">Orienteering</option>
<option value="Paintball">Paintball</option>
<option value="Pétanque">Pétanque</option>
<option value="Race Walking">Race Walking</option>
<option value="Rafting">Rafting</option>
<option value="Rally Raid">Rally Raid</option>
<option value="Rallycross">Rallycross</option>
<option value="Rallying (car)">Rallying (car)</option>
<option value="Rugby">Rugby</option>
<option value="Running">Running</option>
<option value="Sailing">Sailing</option>
<option value="Sprint (race)">Sprint (race)</option>
<option value="Sprint car racing">Sprint car racing</option>
<option value="Sprint football">Sprint football</option>
<option value="Street racing">Street racing</option>
<option value="Swimming">Swimming</option>
<option value="Tennis">Tennis</option>
<option value="Track & Field">Track & Field</option>
<option value="Track cycling">Track cycling</option>
<option value="Track racing">Track racing</option>
<option value="Tractor pulling">Tractor pulling</option>
<option value="Trailer racing">Trailer racing</option>
<option value="Train racing">Train racing</option>
<option value="Triathlon">Triathlon</option>
<option value="Unicycling">Unicycling </option>
</select>
<input type="button" value="Add Section" id="btnAdd" class="button"/>
<ul id="sortable">
<li class="ui-state-default">First</li>
<li class="ui-state-default">Second</li>
<li class="ui-state-default">Third</li>
</ul>
</body>
</html>
Output
This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account
Dismiss xKeyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |