{% if datepicker %} $('#submit').bind('click', function() { {{ thefunction }} }); {% endif %} {% if datatier %} $('#select_dataTier').bind("change", function() { {{ thefunction }} }); {% endif %} {% if sitename %} $('#select_siteName').bind("change", function() { {{ thefunction }} }); {% endif %} {% if choice_sitename %} $('#select_siteName').bind("change", function() { {{ thefunction }} }); {% endif %} {% if choice_popular %} $('#select_popIdx').bind("change", function() { {{ thefunction }} }); {% endif %} {% if choice_TimeAggr %} $('#select_timeAggr').bind("change", function() { {{ thefunction }} }); {% endif %} {% if choice_metric %} $('#select_metric').bind("change", function() { {{ thefunction }} }); {% endif %} {% if choice_centraluser %} $('#select_centraluser').bind("change", function() { {{ thefunction }} }); {% endif %}