As a newbie to Javascript, I'm a little stuck here. All I'm trying to do is this: when any content appears in div2, div1 is to disappear.
<html>
<head>
<title>Untitled Document</title>
<script src="jquery-1.9.1.min.js"></script>
<script type=”text/javascript”>
$(document).ready(function(){
if ($("#div2").html().length > 0) {
$('#div1').hide();
}
});
</script>
</head>
<body>
<div id="div1">Bonus Bet</div>
<div id="div2">Random Text</div>
</body>
</html>