JSFiddle - React, Tailwind, and code Playground

by danheberden

HTML

<div id="myDiv">
    <img src="http://www.google.com/images/logos/ps_logo2.png" />
</div>

JavaScript

$('img').load(function(){alert('normal load');});

$('div').load(function() { alert('the div got the load event'); });

$('img').delegate('div', 'load', function() {alert('div delegate');});

$('img').live('load', function() {alert('live load');});

$('img').attr('src', 'http://www.google.com/intl/en/images/about_logo.gif');