
function update_dropdowns(el) {

    new Ajax.Request(webroot + '/dining/update_dropdowns/' + el.id + '/' + encodeURIComponent(el.value), {

        method: 'get',
        onComplete: function (transport) {

            var json = transport.responseText.evalJSON();

            if (json.cities) {
                $('citySelect').innerHTML = json.cities;
            }

            if (json.restaurants) {
                $('restaurantSelect').innerHTML = json.restaurants;
            }

            if (json.cuisines) {
                $('cuisineSelect').innerHTML = json.cuisines;
            }
        }
    });
}


function changeDesc(x) {
    document.getElementById("iconExp").innerHTML = x;
}
