<html>
<head>
</head>
<body>
<div>
<div>????? ?? ?????? 1</div>
<div><input type="button" value="click me" countClick="0" onclick="clk(this);"></div>
</div>
<div>
<div>????? ?? ?????? 2</div>
<div><input type="button" value="click me" countClick="0" onclick="clk(this);"></div>
</div>
<script>
function clk (ths) {
var countClick = ths.getAttribute('countClick');
++countClick;
if (countClick == 2)
ths.parentNode.parentNode.style.display = 'none';
else
ths.setAttribute('countClick', countClick);
}
</script>
</body>
</html>