Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-git.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<div id="wrapper">
    <div id="hello">
        Hello
        <div>nested inside hello</div>
    </div>
</div>
</body>
</html>
 
#wrapper {
    position: relative;
}
#hello {
    background-color: red;
}
#hello div {
    background-color: blue;
}
#world {
    background-color: green;
    position: absolute;
    left: 40px;
    top: 0px;
}
 
$("#hello").on('click', function(e) { alert('world');});
$('#hello').off('click');
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
xsoulfulxpro
0viewers