I am using the reset method as shown below on my web pages
$("#form")[0].reset();
But when I use it as below
$("#form").reset();
This gives me an error.
Why does the first method work, and later not?
My page is working fine. But I would like it to be behind. There is a solution everywhere. But none of them describes the reason for this.
Note: I checked here and it shows so many answers. Nothing clearly defines the cause.
source
share