I have a form that onSubmit it validates the address. My problem is that it is also affecting my back button so when one hits back it tries to validate the form. Can I just have the back button go back without validating the form? Example below.
I remember running into this problem awhile back. It seemed the issue was that any input that was type="image" was always treated as a submit button (or something similar).
I'm not sure the code you have in place around it - but you could remove the input on the back button and style the href with css instead.
I have a form that onSubmit it validates the address. My problem is that it is also affecting my back button so when one hits back it tries to validate the form. Can I just have the back button go back without validating the form? Example below.
I'm not sure the code you have in place around it - but you could remove the input on the back button and style the href with css instead.