function CityMap(level) { if (level == '1') { $('#cat2div').html(''); $("#sehir3").val(""); $("#sehir2").val(""); } var cat = $("#sehir"+level).val(); $.ajax({ type: "GET", data: "cat=" + cat + '&level=' + level+'&class=sg-select', url: "https://firmabak.com/com/common/js/selectCityFMap.php", success: function(msg){ $("#sehir"+level+"div1").html(msg).show(); } }); haritaIslem(level); }