I have a large form, “form1”, is there a built-in function/method to ignore a specific input(s) when using,
form1.reset()
such as
form1.reset(".classNameToIgnore")
or
form1.reset().ignore(".classNameToIgnore");
I have a large form, “form1”, is there a built-in function/method to ignore a specific input(s) when using,
form1.reset()
such as
form1.reset(".classNameToIgnore")
or
form1.reset().ignore(".classNameToIgnore");
<form>.reset()
is built into JavaScript. Here are the official docs.
There is no option to do what you want - you’ll need to hard code such behaviour yourself.