I have a div
<div class='text'>
<span class='s'>Some text</span>
</div>
var div = $('.text');
Now I want to change the text of the span. What I tried is
var span = $(div).find('span.s')[0];
$(span).text('some other text');
But I don't have any idea How to change this inside the var div