List from google list choosen
HTML
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://itchyapps.com.au/aherns/js/modernizr.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.1.0/chosen.jquery.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.1.0/chosen.css">
<datalist id='products'>
</datalist>
<select id='products-list'>
</select>
JavaScript
function createLIST() {
// url to spreadsheet
var url = "https://spreadsheets.google.com/feeds/list/1a00YuGgCNuzYfw7C4qxvpdlbRRiDHV45gPWwQ7E6X0E/o11yyjo/public/values?alt=json";
//var url = "https://spreadsheets.google.com/feeds/list/" + spreadsheetID + "/o11yyjo/public/values?alt=json";
$.getJSON(url, function(data) {
var entry = data.feed.entry;
//function(){$('ul.chzn-results').empty();},
$(entry).each(function() {
// add each option
//Option = "<li class="active-result">" + this.gsx$list.$t + "</li>";
//$('ul.chosen-results').append(Option);
Option = "<option>" + this.gsx$list.$t + "</option>";
$('#products-list').append(Option);
});
$('#products-list').chosen();
});
}
$(document).ready(function(e){
// now add the GoogleSpread sheet list
createLIST()
//$('#products-list').chosen();
});