I created a button that successfully opens, but I am struggling to figure out how to close it. Can someone assist me with this?
Additionally, I have one more query: How can I remove the border when the button is clicked?
document.getElementById("arrowbtn1").onclick = arrow1;
function arrow1() {
document.getElementById("p1").innerHTML = "You can invite up to 2 additional users on the<br>\
Free plan.There is no limit on team members for <br>\
the Premium plan.";
document.getElementById("span1").style.color = "hsl(238, 29%, 16%)";
document.getElementById("span1").style.fontWeight = "bold";
document.getElementById("arrowimage1").style.transform = "scaley(-1)";
document.getElementById("arrowimage1").style.marginTop = "5px";
}
<button type="button" id="arrowbtn1">
<span id="span1">How many team members can I invite?</span>
<img src="images/icon-arrow-down.svg" alt="arrow down icon" id="arrowimage1"class="arrowimage">
</button>
<p id="p1"></p>