From a99ea9b7d58aa56d60716faeb0e38a9fedfa152a Mon Sep 17 00:00:00 2001 From: Matt Eason Date: Fri, 23 Jun 2017 13:59:27 +0100 Subject: [PATCH] Correctly remove id from select after it's been converted to autocomplete --- public/template/javascripts/lite-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/template/javascripts/lite-common.js b/public/template/javascripts/lite-common.js index 5099b41..a6bdd02 100644 --- a/public/template/javascripts/lite-common.js +++ b/public/template/javascripts/lite-common.js @@ -30,7 +30,7 @@ LITECommon.countrySelectInitialise = function($countrySelect) { var autocompleteInput = $("input[ui-autocomplete-id=" + id + "]"); if (autocompleteInput.length > 0) { autocompleteInput.attr("id", id); - $(this).removeAttr("id"); + $countrySelect.removeAttr("id"); } };