How do I style bold to any text from Javascript
?
window.addEventListener("DOMContentLoaded",()=>{
var iLabel = document.getElementById('labelamodificar');
iLabel.style.fontWeight = "900";
});
<label id="labelamodificar" for="labelf">Nombre Usuario: </label>
<input type="text" id="labelf">
For example this works, but what I need is to give you the \<b>
tag as if you had put it in the HTML
.