Menu icon Foundation

My Posts


My Comments

Tyler Siron commented on Tyler Siron's post about 5 years

Hi Mikhail,

Sorry I actually posted the incorrect jQuery, the markup and ID match on my side, that wasn't the issue.

I did however find the issue, just in case anyone else runs into it.

I had tried the jquery autocomplete.appendTo option before, but I was appending it to the wrong element ( I was trying to append it to the input element). It needs to be appended to the modal itself, as in:

             $("#txtDestinationCity").autocomplete({
                source: function (request, response) {
                    var results = $.ui.autocomplete.filter(CityArray, request.term);
                    response(results.slice(0, 10));
                },
                minLength: 3,
                appendTo: "#frmCriteria"
            });

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

You commented on Tyler Siron's post about 5 years

Hi Mikhail,

Sorry I actually posted the incorrect jQuery, the markup and ID match on my side, that wasn't the issue.

I did however find the issue, just in case anyone else runs into it.

I had tried the jquery autocomplete.appendTo option before, but I was appending it to the wrong element ( I was trying to append it to the input element). It needs to be appended to the modal itself, as in:

             $("#txtDestinationCity").autocomplete({
                source: function (request, response) {
                    var results = $.ui.autocomplete.filter(CityArray, request.term);
                    response(results.slice(0, 10));
                },
                minLength: 3,
                appendTo: "#frmCriteria"
            });

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content