-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form button styled as hyperlink #3724
Comments
Wouldn't button mini "btn-mini" suffice? It takes much less space. Or do you want plain link? |
.btn-mini is great, but it is slightly higher than text |
A regular 'a' tag that is |
Assuming jQuery $(document).ready(function(){
$("a.submit").click(function(){
$("#form").submit();
});
}); Then just |
I'd use a jQuery selector that gets the first enclosing form based on the a tag. But just styling the button would be much better, there shouldn't be any need for JavaScript for something as simple as this. |
It just seems like a step backward to me is all, although I guess there is stuff there to turn |
@j-hernandez every time you use a link to submit a form God kills a cat. avoid that. @dyve .btn-mini is a presentational name, so it is bad for you, but nobody who is using bootstrap cares about semantic names I guess. Anyway you can implement it in seconds: http://jsfiddle.net/eW2gd/ |
@giuseppeg I don't have a problem with the name .btn-mini, there must be some misunderstanding there. Thanks for the example code, there were a few details I missed in my solution. |
For now we'll avoid adding this since we advocate folks using buttons only for actions rather than hyperlinks. Links should point to destinations and buttons should handle actions. |
Thanks for the clarification |
I'd like a btn-hyperlink class that can be used like all btn* classes but styles the button like a hyperlink. Great for small inline forms etc. where a normal buttons takes up too much space.
The text was updated successfully, but these errors were encountered: