Reputation: 147
Since it doesn't appear to be possible to apply text-decoration: underline;
to a form.submit
button I'm wondering if someone can quickly show me how to apply it via JS? I only know html/css/php. Onmouseover=?
<span onmouseover="what goes here"><input type="submit"></input></span>
Thanks!
Upvotes: 0
Views: 204
Reputation: 147363
Consider using a button instead:
.hoverUnderline:hover {
text-decoration: underline
}
<button type="submit" class="hoverUnderline">Submit stuff</button>
Buttons in forms are submit buttons by default so don't actually need type="submit".
Upvotes: 0