Why not fulfills the same function again?

Hello, prompt, please, what is my bad. Here is the test page. There is a choice of the car. After choosing the brand shows the model selection. After model selection should be the choice of the year, but for some reason the year remains disabled. Why is this?
Here is the code:
function selectAuto(classSelect, pathJson, firstOption) {
 $('select.' + classSelect).find('option').remove();
 $('select.' + classSelect).append( "<option>" + firstOption + "</option>" );
 $.getJSON(pathJson, function (data) {
 $.each( data, function( key, val ) {
 $('select.' + classSelect).append( "<option>" + val + "</option>" );
});
});
 setTimeout(function() {
 $('.tire-selection-select.' + classSelect).attr('disabled', false).trigger('refresh');
 }, 100)
};

 $('.jq-selectbox.select-mark .jq-selectbox__dropdown li:not(:first-child)').on('click', function(){
 selectAuto('select-model', 'js/json/models.json', 'Model');
});

 $('.jqselect.select model li:not(:first-child)').on('click', function(){
 selectAuto('select-year', 'js/json/year.json', 'Year');
 });
June 27th 19 at 15:25
2 answers
June 27th 19 at 15:27
Solution
The problem was solved like this:
$(document).on('click','.jqselect.select model li:not(:first-child)', function(){
 selectAuto('select-year', 'js/json/year.json', 'Year');
 });
June 27th 19 at 15:29
setTimout?
so it is not done
or promise and then the success of the two change attribute disable
either on the onChange of both selectors is called a handler function reviewer status and make disable for the third
Select custom. Therefore, it is not so simple. setTimout does not plow - ofelia.Botsford commented on June 27th 19 at 15:32
: it basically fulfills his action here. can a debugger to check to make sure. - mina50 commented on June 27th 19 at 15:35

Find more questions by tags jQuery