Hello,
On a bottom of a form I have 2 buttons: Submit and Cancel.
Submit is an input and submits the form.
Cancel should just redirect the user to a new page without
submitting the form.
I need the Cancel button to look the same as the Submit button.
If I use an input of type button as Cancel button I am able to do that
but then I need to rely on "onclick" to redirect the user ... I think
would be better to use an anchor.
However, I am having a problem in styling the anchor to make it look
the same as the Submit input.
Could someone tell me how to style the anchor and if using an anchor
is better then using the button?
My code:
Thanks,
Miguel
On a bottom of a form I have 2 buttons: Submit and Cancel.
Submit is an input and submits the form.
Cancel should just redirect the user to a new page without
submitting the form.
I need the Cancel button to look the same as the Submit button.
If I use an input of type button as Cancel button I am able to do that
but then I need to rely on "onclick" to redirect the user ... I think
would be better to use an anchor.
However, I am having a problem in styling the anchor to make it look
the same as the Submit input.
Could someone tell me how to style the anchor and if using an anchor
is better then using the button?
My code:
Thanks,
Miguel
Comment