JSFiddle - React, Tailwind, and code Playground
by 3gwebtrain
HTML
<a href="www.google.com">Google</a>
JavaScript
var link = $("a").attr("href");
console.log ( ! /^(http|https|\/\/)/.test(link) );
by 3gwebtrain
<a href="www.google.com">Google</a>
var link = $("a").attr("href");
console.log ( ! /^(http|https|\/\/)/.test(link) );