How to add autocomplete textbox id
hi all i have aform with textbox with autocompletesearch on enter of 3 character textbox is populated based on firstname value and lastname value will be filledso
below is my code instead of +1 i need to pass autocomplete textbox suppose textbox id is aaa1
i want to pass only 1 in below 1
$("#FirstName" +1).val(json.licenses[0].code);
$("#LastName" +1).val(json.licenses[0].desc);
$.ajax({
url: '/LocumTenens/populatefnamelname/',
data: "{ 'licenseNumber': '" + i.item.val + "'}",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function (data) {
var json = JSON.parse(data);
$("#FirstName" +1).val(json.licenses[0].code);
$("#LastName" +1).val(json.licenses[0].desc);
counter++;
},
error: function (response) {
//alert(response.responseText);
},
failure: function (response) {
//alert(response.responseText);
}
});
},
minLength: 3
});
}