Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<link href="http://ivaynberg.github.com/select2/select2-3.3.2/select2.css" rel="stylesheet" type="text/css" />
<script src="http://ivaynberg.github.com/select2/select2-3.3.2/select2.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
    
    <select id="e2">
        <option><option>
        <option value="1">Mustard</option>
        <option value="2">Ketchup</option>
        <option value="3">Relish</option>
    </select>
</body>
</html>
 
            $("#e2").select2({
                placeholder: "Select a State",
                allowClear: true
            });
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers