From 0c7b4a13f5f2b23ae73ae3d5e4ddb5dd9b8a8cf1 Mon Sep 17 00:00:00 2001 From: harontaiko Date: Wed, 24 Jan 2024 15:11:13 +0300 Subject: [PATCH] Added support for select inputs using JQUERY nice select --- countries.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/countries.js b/countries.js index 03f44b5..4c77067 100644 --- a/countries.js +++ b/countries.js @@ -297,3 +297,38 @@ function print_state(state_id, state_index){ option_str.options[option_str.length] = new Option(state_arr[i],state_arr[i]); } } + + +//jQuery Nice Select == Support +function print_country_for_JQueryNice(country_id) { + var option_str = $('#' + country_id); + var ul = option_str.next('.nice-select').find('.list'); + + option_str.empty(); + option_str.append($('