我有:
<input type="checkbox" id="showdiv">SHOW ME!
<div id="hello" style="display:none">
Hello world!
</div>
<script type="text/javascript">
document.getElementById("showdiv").checked ? document.getElementById("hello").style.display = "inline" : document.getElementById("hello").style.display = "none";
</script>
错误在哪里?div不会在点击时显示...