There is a <input type="submit">
button. How can I make the text on the button underlined dotted line? That's actually what I want to get.
|
2 answers
<style type="text/css"> A.dot { text-decoration: none; /* Убираем подчеркивание */ border-bottom: 1px dashed #000080; /* Добавляем свою линию */ } </style> <body> <a href="#" class="dot">отправить заявку`</a>`
- Well for reference, I know. The question was about the text on the button. - Frontender
- one
- @ Viktor Pavlov, the link is framed in a frame. And the fact that green - it can be anything. For example, a block or list item. jsfiddle.net/KzqgX - as an example, a little bit krivenko, but significant. - andreyqin
- The button <input name = "" type = "submit" value = "SEND A REQUEST" class = "send"> sends the form data using the POST method. And how do I insert HTML tags in VALUE? Or maybe I misunderstood something? - Frontender
- oneyou probably don't know, but each button in the form works like submit. jsfiddle.net/oceog/s9bJg - zb '
|
From StackOverflow:
<form id="form-id"> <a href="#" onclick="document.getElementById('form-id').submit();"> submit </a> </form>
Well, make out the link absolutely as you want (size, background, text inside)
- Javascript somehow do not want to use for the form. Well, if I do not think of anything, I will use your advice. - Frontender
- most terrible decision. one
onclick=""
what's worth .... - zb ' - And why is the decision terrible? I read on the forums, people use. - Frontender
- onepeople use a lot, in the first place js, where it is not needed, in the second, onclick = "" in the third ... but just document.getElementById ('form-id') when the element is already inside the form ... it's idiocy. - zb '
|