JSFiddle - React, Tailwind, and code Playground
by stevea
HTML
<div>
<div>Go To:</div>
<input class="goto" type=input />
</div>
JavaScript
$(function() {
$('input.goto').change(function(e) {
debugger;
var goto = this.value;
var ret = goto.search(/^http/);
var ret = goto.search(/^www/);
var ret = goto.search(/^www|^http/);
x=1;
});
});