Marius Vasile

Marius Vasile

  • 594
  • 1.9k
  • 145.6k

autocomplete result is exceeding div

Oct 27 2023 4:18 PM

I have an autocomplete with

<asp:TextBox ID="txtSearch" class="form-control form-control-sm" runat="server" Style= "font-size: 12px;" ClientIDMode="Static" />


$("#txtSearch").autocomplete({
    source: function (request, response) {
        $.ajax({
            type: "POST",
            contentType: "application/json; charset=utf-8",
            url: "Evaris.aspx/GetTipMasura",
            data: "{'TipMasura':'" + document.getElementById('txtSearch').value + "'}",
            dataType: "json",
            success: function (data) {
                if (data != null) {
                    response(data.d);
                }
            },
            error: function (result) {
                alert("Error");
            }
        });
    }
});

but the reswult is exceeding their div limits

How do I fix this?


Answers (1)