Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocomplete position issue #206

Open
trynisis opened this issue Sep 4, 2013 · 2 comments
Open

autocomplete position issue #206

trynisis opened this issue Sep 4, 2013 · 2 comments

Comments

@trynisis
Copy link

trynisis commented Sep 4, 2013

So it seems like there is a problem with the location of the ul element for the autocomplete. Position is top:0, left:0.

Im using jQuery UI 1.8.12 and jQuery v1.10.2

any idea ?

@trynisis
Copy link
Author

trynisis commented Sep 4, 2013

ok so using this version of jQuery (http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js) fixed it

@HassanBakri
Copy link

hi everyone i found the soluton would be like this

 $("#tags").tagit({
            fieldName: "tags",
            singleField: true,
            singleFieldDelimiter: ',',
            singleFieldNode: $("#tags"),
            autocomplete: {
                source: function (request, response) {
                    $.ajax({
                        url: '@Url.Action("Tags", "Corporations")',
                        dataType: "json",
                        data: {
                            q: request.term
                        },
                        success: function (data) {
                            var res = new Array();
                            for (var i = 0; i < data.length; i++) {
                                res.push(data[i].Name);
                            }
                            response(res);
                        }
                    });
                }
             , appendTo: ".tagit-new"
            }
        });

the only diffrence is , appendTo: ".tagit-new"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants