ript>
  $(document).ready(function() {
    $("#searchbox").select2({
      placeholder: "{% blocktranslate %}Encontre um munic√≠pio{% endblocktranslate %}",
      width: "220px"
    });
    $('#searchbox').on('select2:select', function (e) {
      var city = e.params.data;
      window.location.href = '/alerta/' + city.id;
    });
  });
</script>

{% endblock %}
