Marius Vasile

Marius Vasile

  • 598
  • 1.9k
  • 144.1k

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)