JSFiddle - React, Tailwind, and code Playground
HTML
<textarea></textarea>
<button>Submit</button>
<p>dgfg</p>
JavaScript
$('button').click(function(){
var links = $('textarea').val().split('\n');
$.each(links,function(){
if( this.substr(0, 7) == 'http://' )
$('p').after(this);
else
$('p').after('error: '+this+'<br/>');
});
return false;
});