JSFiddle - React, Tailwind, and code Playground

HTML

<div id="address">
    <input type="text" />
</div>

JavaScript

$.fn.changevalue = function(v) {
    return this.val(v).trigger('select');
}

$('#address input').bind('copy', function() {
    var $this = $(this),
    origval = $this.val();
    $this.changevalue('http://' + origval);
    setTimeout(function(){
        $this.val(origval);
    }, 0);
});