Clear selected cities when country is changed

This commit is contained in:
vedatakd 2020-10-19 10:11:17 +03:00
parent 3c7a09e139
commit 8dcc55da57

View File

@ -200,6 +200,8 @@ function SelectOnClick() {
if ($(this).attr('data-field') == "country") {
$('.filter-location-modal,.filter-location-back,.filter-location-modal .countries').hide();
$('input[name="country"]').val(id)
$('.selected-city').html('');
$('input[name="city[]"]').val('');
text_html.html(input_text)
$(".filter-location-body input[type='checkbox']").prop('checked', false);
$(".filter-location-body li[data-id='" + id + "'] input[type='checkbox']").prop('checked', true);