答案 0 :(得分:1)
第一个框的onclick应该是$(this).css("visibility", "hidden");
答案 1 :(得分:0)
http://jsfiddle.net/joshuamartin/VdpJn/6/
<html>
<body>
<div class="box" onclick="$(this).css('visibility', 'hidden')">Box 1</div>
<div class="box" onclick="$(this).css('visibility', 'hidden')" >Box 2</div>
</body>
</html>