From 45c46d749d7a2199fa30d78cb15999c85fe30a17 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Fri, 7 Oct 2016 15:43:33 +0800 Subject: ADD: Form input hint code --- index.html | 71 ++++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 48 insertions(+), 23 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index 623335c..23de74b 100644 --- a/index.html +++ b/index.html @@ -330,24 +330,24 @@
-  <table class="table table-striped table-hover">
-      <thead>
-          <tr>
-              <th>name</th>
-              <th>duration</th>
-              <th>genre</th>
-              <th>release date</th>
-          </tr>
-      </thead>
-      <tbody>
-          <tr class="selected">
-              <td>The Shawshank Redemption</td>
-              <td>2h 22min</td>
-              <td>Crime, Drama</td>
-              <td>14 October 1994</td>
-          </tr>
-      </tbody>
-  </table>
+<table class="table table-striped table-hover">
+    <thead>
+        <tr>
+            <th>name</th>
+            <th>duration</th>
+            <th>genre</th>
+            <th>release date</th>
+        </tr>
+    </thead>
+    <tbody>
+        <tr class="selected">
+            <td>The Shawshank Redemption</td>
+            <td>2h 22min</td>
+            <td>Crime, Drama</td>
+            <td>14 October 1994</td>
+        </tr>
+    </tbody>
+</table>
 
@@ -503,9 +503,9 @@
- +
-
+
@@ -603,7 +603,7 @@ <div class="form-group"> <label class="form-checkbox"> <input type="checkbox" /> - <i class="form-icon"></i> Remember me + <i class="form-icon"></i> Remember me </label> </div> </form> @@ -712,16 +712,41 @@
-

To use form validation styles, add is-success and is-danger to the controls or add has-success and has-danger to parent elements.

+

To use form validation styles, add is-success and is-danger to the controls or add has-success and has-danger to parent elements. You can use the class form-input-hint to provide form validation success and error messages.

+
+
+ +
+ + + The name is invaild. +
+
+ + + The email is available. +
+ +
+
+
 <form>
-    <!-- form validation styles -->
+    <!-- form validation class: has-success -->
     <div class="form-group has-success">
+        <label class="form-label" for="input-example-1">Name</label>
+        <input class="form-input" type="text" id="input-example-1" placeholder="Name" />
+        <span class="form-input-hint">The name is invaild.</span>
+    </div>
+
+    <!-- form validation class: is-success -->
+    <div class="form-group">
         <label class="form-label" for="input-example-1">Name</label>
         <input class="form-input is-success" type="text" id="input-example-1" placeholder="Name" />
+        <span class="form-input-hint">The name is invaild.</span>
     </div>
 </form>
 
-- cgit v1.3.1-26-gb76a