dima-kruglyak,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function() {
$(".block").each(function(indx, el) {
var myAnchor = $(".myAnchor", el),
myAnchorText = myAnchor.text();
$("ul", el).on("click mouseenter mouseleave", ".showEdt", function(event) {
var text = $(this).data("evalz");
if (event.type == "mouseenter") myAnchor.html(text);
else if (event.type == "click") myAnchorText = text;
else myAnchor.html(myAnchorText)
})
})
});
</script>
</head>
<body>
<div class="block">
<ul>
<li class="showEdt" data-evalz="111">Milk</li>
<li class="showEdt" data-evalz="222">Bread</li>
</ul>
<div class="myAnchor">333</div>
</div>
<div class="block">
<ul>
<li class="showEdt" data-evalz="333">Milk</li>
<li class="showEdt" data-evalz="444">Bread</li>
</ul>
<div class="myAnchor">555</div>
</div>
<div class="block">
<ul>
<li class="showEdt" data-evalz="666">Milk</li>
<li class="showEdt" data-evalz="888">Bread</li>
</ul>
<div class="myAnchor">999</div>
</div>
</body>
</html>