Answers for "how to hide and show a form using button"

1

html button that hide and show

<button onclick="toggleText()">button</button>
<p id="Myid">Text</p>
<script>
function toggleText(){
  var x = document.getElementById("Myid");
  if (x.style.display === "none") {
    x.style.display = "block";
  } else {
    x.style.display = "none";
  }
}
</script>
Posted by: Guest on October-17-2020
0

form hide in html

</dd><div style="display:none;"><dd>
Posted by: Guest on June-28-2021

Code answers related to "how to hide and show a form using button"

Browse Popular Code Answers by Language