$(function () { var shown_city = ''; if (!(shown_city == null || shown_city == '')) { $("#showcityname").html(shown_city); } })