I want to add a horizontal row after the user clicks on Completed. This javascript isn't working:
function myFunction() {
document.getElementById("green-hr").innerHTML = "<b>Completed</b><br /><hr />";
}
<b onclick="myFunction()" id="green-hr">Completed</b>
How to fix it?
function myFunction() {
document.getElementById("green-hr").innerHTML = "<b>Completed</b><br /><hr />";
}
<b onclick="myFunction()" id="green-hr">Completed</b>
How to fix it?