Вопрос

I have this Tag-it plugin up and running with just a flaw that I must correct.

It doesnt't show the list of tags when the mouse enters the input field, even with the showAutocompleteOnFocus:true, property.

So far I have this code

<script type="text/javascript">
        $(document).ready(function() {
            $("#categories").tagit({
                fieldName: "categories[]",
                availableTags: <?php echo $categories; ?>,
                showAutocompleteOnFocus:true,
                allowSpaces:true

            });
        });
</script>

<ul id="categories"><ul>

The Categories echo renders like this

["Categoria","Categoria 2","Categoria 3","Promoção"]

Any help would be much appreciated!

Thanks in advance!

Это было полезно?

Решение

I opened an issue on the plugin page on github, and the author solved it

For anyone with the same issue here's the issue page

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top