var $select = $('span[onclick*="' + str + '"]').closest('table').find('select');
for (var n = 0; n < a.length; n++) {
obj.base.push($select.find('option').eq(n).text());
obj.lv.push($select.find('option').eq(n).text().match(/レベル\d+/)[0].match(/\d+/)[0]);
}
↓
var $table = $('span[onclick*="' + str + '"]').closest('table');
var create_unit_time_len = $table.find('.create_unit_time').length;
for (var n = 0; n < create_unit_time_len; n++) {
obj.base.push($table.find('option').eq(n).text());
obj.lv.push($table.find('option').eq(n).text().match(/レベル\d+/)[0].match(/\d+/)[0]);
}
var html = '<select id="mk_filter_fort">';
html += '<option value="全">全</option>';
for (var i = 0; i < arr_fort.length; i++) {
html += '<option value="' + arr_fort[i] + '">' + arr_fort[i] + '</option>';
}
html += '</select>';
>>370
=== execute function ===の下っていうのは
=== execute function ===内という意味です。
=== execute function ===の直下に記載する必要はありません。
favoriteSort();の上に記載すればそれだけで大丈夫です。
説明不足ですみません。