JSFiddle - React, Tailwind, and code Playground

by jasonwilczak

HTML

<a id="nameGet" onclick="getName();" style="color: blue; white-space: nowrap;font-size: small; position: absolute; top: 30px; left: 55px;"><u>Edit Profile</u></a>

JavaScript

function getName () {
   name = prompt("Full Name: ");
   document.getElementById("pname").innerHTML = name;
   document.getElementById("nameGet").style.fontSize = "small";
   document.getElementById("postName1").innerHTML = name;
   document.getElementById("postName1").style.textDecoration = "bold";
}