Created
September 28, 2012 12:17
-
-
Save Holek/3799486 to your computer and use it in GitHub Desktop.
Label-trigerred submit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Label-trigerred submit | |
*/ | |
label { | |
cursor: pointer; | |
color: blue; | |
border: 1px solid #CCC; | |
padding: 3px 6px; | |
} | |
button { | |
margin: 10px 0; | |
color: #CCC; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label for="button">Click me</label> | |
<form method="get" action="/"> | |
<button type="submit" id="button" name="button" value="Button">Don't click me</button> | |
</form> | |
<p>A click on a label above will put a Dabblet in a Dabblet.</p> | |
<img src="http://memecaptain.com/xzibit.jpg" src="YO DAWG" height="81" width="125" /> | |
<h2>Problems</h2> | |
<ul> | |
<li>Clicking on a label in Mobile Safari does not work.</li> | |
<li>Clicking on a label in Internet Explorer 8 (strangely all other versions seem to work) does not work.</li> | |
</ul> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment