ブロック/非表示間の表示の切り替えは機能するのに、jQuery の表示/非表示が機能しないのはなぜですか?
Javascript:
<div style="width: 100px; height: 100px; background-color: red;"
onmouseover="document.getElementById('div1').style.display = 'block';"
onmouseout="document.getElementById('div1').style.display = 'none';">
<div id="div1" style="display: none;">Text</div>
</div>
jQuery:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<div style="width: 100px; height: 100px; background-color: red;"
onmouseover="$('#div1').show();" onmouseout="$('#div1').hide();">
<div id="div1" style="display: none;">Text</div>
</div>