Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (33 sloc) 1.072 kb
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Color Datalist</title>
<link rel="stylesheet" href="" type="text/css" />
<script src=""></script>
<script src=""></script>
<input type="text" name="color" id="color" value="" list="colorlist" />
<datalist id="colorlist">
<select style="display: none;">
<option value="Black" />
<option value="Blue" />
<option value="Dark Green" />
<option value="Grey" />
<option value="Green" />
<option value="Red" />
<option value="White" />
<option value="Yellow" />
$(document).ready(function () {
var availableTags = $('#colorlist').find('option').map(function () {
return this.value;
$('#color').autocomplete({ source: availableTags });
Jump to Line
Something went wrong with that request. Please try again.