Well, I'm banging my head on this code, I'm reading a book about jQuery, but I can not get this code to work, someone can give a hint on how to solve it, and what this method works for ($ .fn. date).
$('#minhaLista li').each(function(){
var $li = $(this),
$div = $li.find('div.content');
$li.data('contentDiv', $div);
});
var $primeiroLi = $('minhaLista li:first');
$primeiroLi.data('contentDiv').html('new content');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><divclass="content">
<ul id="minhaLista">
<li>Primeiro item</li>
<li>Segundo item</li>
</ul>
</div>