I have read, understood and hereby accept the customized Term & Condition for Lendingwale in relation to collection of information.
/* Autocomplete city and company search */
$(document).ready(function () { $("#COBJ2CF15").keyup(function () { var query = $('#COBJ2CF15').val(); if (query != "") { $.ajax({ url: "https://www.dialabank.com/company_data22.php", data: 'query=' + query + "&table=City&column=City", dataType: "json", type: "POST", success: function (response) { // console.log(response); var len = response.length; $("#citySearchResult").empty(); for (var i = 0; i < len; i++) { var id = response[i]['id']; var name = response[i]['name']; $("#citySearchResult").append("
"); }
// binding click event to li
$("#citySearchResult li").bind("click", function () { setCityText(this); }); } }); } });
$("#COBJ2CF15").keyup(function () { var query = $('#COBJ2CF15').val(); if (query != "") { $.ajax({ url: "https://www.dialabank.com/company_data22.php", data: 'query=' + query + "&table=City&column=City", dataType: "json", type: "POST", success: function (response) { //console.log(response); var len = response.length; $("#citySearchResult").empty(); for (var i = 0; i < len; i++) { var id = response[i]['id']; var name = response[i]['name']; $("#citySearchResult").append("
"); }
// binding click event to li
$("#citySearchResult li").bind("click", function () { setCityText(this); }); } }); } });
function setCityText(element) { var value = $(element).text(); $("#COBJ2CF15").val(value); $("#COBJ2CF15").val(value); $("#citySearchResult").empty(); }
});
$(document).mouseup(function (e) { var container = $("#citySearchResult"); var container1 = $(".input-group:nth-child(3)");
// if the target of the click isn't the container nor a descendant of the container
if (!container1.is(e.target) && container1.has(e.target).length === 0) { container.hide(); } });
$("#COBJ2CF15").keydown(function () { $("#citySearchResult").show(); });
$("#COBJ2CF15").keydown(function () { $("#citySearchResult").show(); });
/* Autocomplete city and company */