This code gives the error "Cannot call method of undefined" what to do?)
$.ajax({ type: "POST", url: path_shell, cache:false, data: { flag_iq: 2, id_quest: iq_id[Tests.iq_question_number], masslenght: iq_id.length, number: Tests.iq_question_number }, success: setTimeout(function(data){ $('#preloader').hide(); var arr = data.split(['!##!'],[4]); $('#numer').html(arr[1]); $('#main_iq').html(arr[2]) ; if (iq_id[Tests.iq_question_number] in Tests.iq_answer) { var a=Tests.iq_answer[iq_id[Tests.iq_question_number]]; console.log(a); $('body').find('#'+a).addClass('checked'); },1000)