5
5
< title > HTML5 placeholder jQuery Plugin</ title >
6
6
< style >
7
7
body { font-family : "HelveticaNeue-Light" , "Helvetica Neue Light" , "Helvetica Neue" , Helvetica, Arial, "Lucida Grande" , sans-serif; }
8
- input , textarea { font-size : 1em ; }
8
+ input , textarea { font-size : 1em ; font-family : "HelveticaNeue-Light" , "Helvetica Neue Light" , "Helvetica Neue" , Helvetica, Arial, "Lucida Grande" , sans-serif;}
9
+ input { width : 250px ; }
10
+ input [type = "radio" ], input [type = "checkbox" ] { width : auto }
9
11
label code { display : inline-block; width : 200px ; }
10
12
textarea { height : 2em ; width : 20em ;, font-family : sans- serif; }
11
- form div { border-bottom : 1px solid # ccc ; padding : 5px ; }
12
13
.my-placeholder { color : # aaa ; }
13
14
.note { border : 1px solid orange; font-size : 13px ; padding : 1em ; background : # ffffe0 ; }
14
15
</ style >
@@ -19,16 +20,14 @@ <h1>HTML5 Placeholder jQuery Plugin</h1>
19
20
20
21
< a href ="https://github.com/mathiasbynens/jquery-placeholder "> < img style ="position: absolute; top: 0; right: 0; border: 0; " src ="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67 " alt ="Fork me on GitHub " data-canonical-src ="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png "> </ a >
21
22
22
- < form >
23
- < input type ="radio " name ="color " placeholder ="This can't be seen "> Red
24
- < input type ="radio " name ="color " placeholder ="This can't be seen "> Green
25
- < input type ="radio " name ="color " placeholder ="This can't be seen "> Blue
23
+ < form method ="GET " action ="">
24
+ < input type ="radio " name ="color " value ="red " placeholder ="This can't be seen "> Red
25
+ < input type ="radio " name ="color " value ="green " placeholder ="This can't be seen "> Green
26
26
27
27
< br />
28
28
29
- < input type ="checkbox " name ="fruits " placeholder ="This can't be seen "> Apple
30
- < input type ="checkbox " name ="fruits " placeholder ="This can't be seen "> Banana
31
- < input type ="checkbox " name ="fruits " placeholder ="This can't be seen "> Pear
29
+ < input type ="checkbox " name ="fruits " value ="apple " placeholder ="This can't be seen "> Apple
30
+ < input type ="checkbox " name ="fruits " value ="banana " placeholder ="This can't be seen "> Banana
32
31
33
32
< br />
34
33
@@ -46,12 +45,12 @@ <h1>HTML5 Placeholder jQuery Plugin</h1>
46
45
< br />
47
46
< br />
48
47
49
- < input type ="email " name ="email " placeholder ="type=email ">
48
+ < input type ="email " name ="email " placeholder ="type=email " value =" prefilled@example.com " >
50
49
51
50
< br />
52
51
< br />
53
52
54
- < input type ="url " name ="url " placeholder ="type=url ">
53
+ < input type ="url " name ="url " placeholder ="type=url " value =" http://prefilled.example.com " >
55
54
56
55
< br />
57
56
< br />
@@ -83,11 +82,17 @@ <h1>HTML5 Placeholder jQuery Plugin</h1>
83
82
< br />
84
83
< br />
85
84
86
- < label for ="p "> Click me to focus password field</ label >
85
+ < label for ="p "> A Label: Click me to focus password field up above </ label >
87
86
88
87
< br />
89
88
< br />
90
89
90
+ < div class ="wrapped ">
91
+ < input type ="password " name ="password2 " placeholder ="type=password 2 ">
92
+ </ div >
93
+
94
+ < br />
95
+
91
96
< input type ="submit " value ="type=submit ">
92
97
< input type ="reset " value ="type=reset ">
93
98
</ form >
0 commit comments