Skip to content

Tag: forms

Changing Values in a Form Causes Lag

I want to change the value of a from once a second, but when i use this code: The tab completely locks up, and I am forced to reload it. I have also tried using document.getElementById(“input”).value = “value”;, but that causes the same thing to happen. Does anyone know how to fix this…

React hook form how to check if mails are equal

I wonder how to check if 2 inputs are equal? I mean I want to do form validation in which I will check if first input is the same as second one. Anyone knows how to do it? If something is unclear feel free to ask 🙂 Answer Its quite simple. you get the values on onSubmit = (data) so