Вот вариант с небольшим усложнением...
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<!--
<link rel="stylesheet" type="text/css" href="tmp.css" />
-->
<style type="text/css">
</style>
<script type="text/javascript">
$(document).ready(function () {
$(".block > div[class*='inner-']").each(function(){
$(this).click(function () {
$(this).hide();
});
});
});
</script>
</head>
<body>
<div class="block">
<div class="inner-1">1.1
</div>
<div class="inner-2">1.2
</div>
</div>
<div class="block">
<div class="inner-1">2.1
</div>
<div class="inner-2">2.2
</div>
</div>
</body>
</html>