Check out this coding example to display the weather by simply clicking a button. Utilizing the Simple Weather plugin available at ---
HTML
<div id="weather"></div>
<input type="submit" id="Show" value="Current Weather" />
JQUERY
// Follow documentation on http://simpleweatherjs.com
$(document).ready(function() {
$("#weather").hide();
$.simpleWeather({
location: 'Nicosia, CY',
woeid: '',
unit: 'f',
success: function(weather) {
html = '<h2><i class="icon-'+weather.code+'"></i> '+weather.temp+'°'+weather.units.temp+'</h2>';
html += '<ul><li>'+weather.city+', '+weather.region+'</li>';
html += '<li class="currently">'+weather.currently+'</li>';
html += '<li>'+weather.wind.direction+' '+weather.wind.speed+' '+weather.units.speed+'</li></ul>';
$("#weather").html(html);
},
error: function(error) {
$("#weather").html('<p>'+error+'</p>');
}
});
});
$("#Show").click(function(){
$("#weather").show();
});
DEMO
http://jsfiddle.net/LW3S9/4/
For a popup demonstration using jQuery UI, check out this link.
http://jsfiddle.net/LW3S9/5/
Implementing click functions and specialized plugins like this can greatly enhance user experience for specific features such as displaying weather information.