I am using form reset method as below in my web pages
$("#form")[0].reset();
But when I use it like the below
$("#form").reset();
It is giving me error.
Why the first method is working and the later is not?
My page is working perfectly. But I would like the reason behind it. The solution is everywhere. But none of them describing the reason behind it.
Note: I checked here and it shows so much answers. Nothing clearly defines the reason.