0

Is it possible to check if an html element(form) has been rendered?

<form>
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname" value="John"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname" value="Doe"><br><br>
  <input type="submit" value="Submit">
</form> 

Using React and Nextjs.

Omar Dulaimi
  • 846
  • 10
  • 30

1 Answers1

1

I think you can check it using window object.

Just check it like a vanilla javascript using window.document.getElementBy....

Chuck
  • 776
  • 5
  • 18