Yeodan Posted June 3, 2009 Share Posted June 3, 2009 Is there a way to change the submit button of a form into a regular link using a css class for the button? Quote Link to comment https://forums.phpfreaks.com/topic/160799-form-submit-link-in-stead-of-button/ Share on other sites More sharing options...
SuperBlue Posted June 4, 2009 Share Posted June 4, 2009 I do remember reading about using a link instead, and it was done with JavaScript. Just keep a normal submit button inside a noscript tag, if you care about those with scripting turned off. (I don't). It can't be done with neither HTML or CSS alone, nor combined. The way to do it using JS would be something like: <a href="javascript:submit()">submit</a> Quote Link to comment https://forums.phpfreaks.com/topic/160799-form-submit-link-in-stead-of-button/#findComment-849187 Share on other sites More sharing options...
Axeia Posted June 4, 2009 Share Posted June 4, 2009 input[type="submit"] { background: none; border: 0; color: navy; text-decoration: underline; } input[type="submit"]:hover{ cursor: pointer; } close enough? Quote Link to comment https://forums.phpfreaks.com/topic/160799-form-submit-link-in-stead-of-button/#findComment-849504 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.