<https://jsfiddle.net/57org2ve/2/>

HTML:

```
<div id="at" style="width:100%;background:red">
This is a div, you can click on me or resize me. 
</div>

```

JavaScript:

```
$('#at').resize(function(){alert(1)})
$('#at').click(function(){alert(2)})

```