If you want to move first span.youtube
element then you have to iterate through .IntroText
elements and find first span.youtube
like this;
$('.IntroText').each(function (i) {
var $this = $(this);
$this.before($this.find('span.youtube:first'));
});
This moves first span.youtube
element before each .IntroText
element. You can use .after()
too if it's what you need.
Here is a jsFiddle example that you can see the markup after modification.