JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <p>
        Links div
    </p>
    <a href="http://goo.gl/3Nf8">
        A
    </a>
    <a href="www.google.com">
        B
    </a>
    <a href="http://www.youtube.com/">
        C
    </a>
    <a href="www.youtube.com/">
        D
    </a>
    <a href="http://undertakeror.blogspot.com/">
        E
    </a>
</div>
<div id="only_http">
<p>
    Filter links div
</p>
</div>

JavaScript

var newDiv = $("#only_http");
$("a[href^='http://']").each(function() {
        newDiv.append($(this));
        //$(this).append('#only_http').attr('href');
});