

        {{ forms.selectField({
            label: 'Craft Icon' | t('cp-nav'),
            instructions: 'Specify an in-built Craft icon for this menu item.' | t('cp-nav'),
            id: 'craft-icon',
            name: 'icon',
            value: nav.icon,
            options: settings.getFontIconOptions(),
        }) }}
    {% endif %}
</div>

<script>

(function($) {
    $('#craft-icon-field select').on('change', function(e) {
        var value = $(this).val();
        var $iconElement = $('#craft-icon-