I decided to incorporate Select2 (Source: ) for the purpose of selecting and tagging.
After studying an example on JsFiddle I attempted to reproduce it on my local server (xampp). Below is the code, mirroring that of the fiddle.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
</head>
<body>
<select multiple id="e1" style="width:300px">
<option value="AL">Alabama</option>
<option value="Am">Amalapuram</option>
<option value="An">Anakapalli</option>
<option value="Ak">Akkayapalem</option>
<option value="WY">Wyoming</option>
</select>
<script>
$("#e1").select2();
</script>
</body>
</html>
The code functions seamlessly on the fiddle, yet fails to do so on my local server.
What could be causing this discrepancy?