function getCities(country_id){if(typeof country_id=="undefined"){country_id=0;}
$.ajax({type:'GET',url:"/daleel/cities/"+country_id,data:"ajax=1",success:function(data){data=eval('('+data+')');console.log(data);for(val in data){}}});}
function getCitiesSelectBlock(country_id){if(typeof country_id=="undefined"){country_id=0;}
$.ajax({type:'GET',url:"/daleel/cities/"+country_id,data:"block=1",success:function(data){$('#daleel-cities-block').html(data);if(country_id==0){$('#daleel-cities-block').css("display","none");}else{$('#daleel-cities-block').css("display","block");}}});}
$(document).ready(function(){$("select#country_id").change(function(){getCitiesSelectBlock(this.value);});$("select#location_type_id").change(function(){var currentValue=$(this).val();if(currentValue==1){$("div#search_bar div#search-specialty").css("display","block");}else{$("div#search_bar div#search-specialty").css("display","none");$("div#search_bar div#search-specialty select").val(0);}});});
