$('.myDiv').find(':first').remove().appendTo('.myDiv');
However, it would be better to identify the div with an ID and not a class as this won't do quite what you expect if you have more than one element with class myDiv. In that case you'll have to do this:
$('.myDiv').each(function (index, div) {
$(div).find(':first').remove().appendTo(div);
});
You can wrap this in a function to perform the functionality described in your comment:
transformFirstThree('.myDiv');
rotate('.myDiv');
transformFirstThree('.myDiv')
function transformFirstThree (selector) {
$(selector).find(':lt(3)').each(function (index, item) {
// do whatever
});
}
function rotate (selector) {
$(selector).each(function (index, div) {
$(div).find(':first').remove().appendTo(div);
});
}