JSFiddle - React, Tailwind, and code Playground
by jsumners
HTML
<input id="clickme" type="button" value="Click me!">
<div id="output">
</div>
JavaScript
$(function() {
$('#clickme').bind('click', function() {
$.getJSON('http://pipes.yahoo.com/pipes/pipe.run?_id=559a90edea9c39c7802f11f5b64ed1cf&_render=json&units=f&zipcode=30260&_callback=?', function(data) {
var items = data.value.items[0];
$('#output').html('<p>The current temperature for Morrow, GA is ' + items.currentTemp + '°F.</p>');
});
});
});