Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <form> <fieldset id="myFieldset"> <legend>Personalia:</legend> Name: <input type="text"><br> Email: <input type="text"><br> Date of birth: <input type="text"> </fieldset> </form> <p>Click the button below to to disable the fieldset above.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myFieldset").disabled = true; } </script> </body> </html>