Whats wrong with this function? function yahooWeather(){ var loadPage = \'yahooweather.php?p=\'+ $(\"#myCity\").val();