$(document).ready(function(){ zip = 20146; lat = 39.04372; lng = -77.48749; used = 'IP'; if(zip != '') {$(".txtZip").val(zip);} $(".distance-wrap").find(".search-para-wrap").toggle(); if ($(".distance-wrap").find("img").attr("src") == "/images/static/site/exp.png") { $(".distance-wrap").find("img").attr("src", "/images/static/site/cnt.png"); } else { $(".distance-wrap").find("img").attr("src", "/images/static/site/exp.png"); } });