").val("").text("دسته بندی"));n.append($("").val("").text("نوع (مدل)"));i.append($("").val("").text("انتخاب استان"));$.each(r,function(){t.append($("").val(this.Id).text(this.Value))})},error:function(){t.empty()}});t.change(function(){var t=$(this).children("option:selected").val();$.ajax({cache:!1,type:"GET",url:"/SimpleSearchItem/GetSubCategories",data:{categoryId:t},success:function(t){n.empty();n.append($("").val("").text("نوع (مدل)"));$.each(t,function(){n.append($("").val(this.Id).text(this.Value))})},error:function(){n.empty()}})});n.change(function(){var n=$(this).children("option:selected").val();$.ajax({cache:!1,type:"GET",url:"/SimpleSearchItem/GetProvinces",data:{subCategoryId:n},success:function(n){i.empty();i.append($("").val("").text("انتخاب استان"));$.each(n,function(){i.append($("").val(this.Id).text(this.Value))})},error:function(){i.empty()}})});f.click(function(){var f={CategoryId:t.children("option:selected").val(),SubCategoryId:n.children("option:selected").val(),ProvinceId:i.children("option:selected").val(),PriceFrom:r.val(),PriceTo:u.val()};addAntiForgeryToken(f);$.ajax({cache:!1,type:"POST",url:"/SimpleSearchItem/Search",data:f,success:o,error:e})})})