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) );