I want to make an empty div react to click.
HTML
<div id="closeButton"></div>
CSS
#closeButton {
height:100px;
position:absolute;
right:0;
top:0;
width:100px;
z-index:1000;
border:1px solid blue;
}
Javascript
$('#closeButton').click(function() {
alert("yo");
});
This works perfectly in Firefox, but not in Internet Explorer. Why?