首頁 >web前端 >js教程 >基於Bootstrap jQuery.validate實作Form表單驗證_jquery

基於Bootstrap jQuery.validate實作Form表單驗證_jquery

WBOY
WBOY原創
2016-05-16 16:26:251197瀏覽

基於Bootstrap jQuery.validate Form表單驗證實作專案結構 :

github 上原始碼位址:https://github.com/starzou/front-end-example

1、form 表單程式碼[html]

複製程式碼 程式碼如下:

 
 
     
        Bootstrap Form Template 
         
         
         
     
     
       
 
           

Form 示例

 
           
 
               
 
                     
                   
 
                         
                   
 
               
 
               
 
                     
                   
 
                         
                   
 
               
 
               
 
                     
                   
 
                         
                   
 
               
 
               
 
                     
                   
 
                         
                         
                   
 
               
 
               
 
                     
                   
 
                       
 
                             
                       
 
                       
 
                             
                       
 
                         
                         
                         
                   
 
               
 
               
 
                     
                   
 
                         
                   
 
               
 
               
 
                   
 
                         
                           且提交
                       按鈕> 
                         
                           且重設
                       按鈕> 
                   
 
               
 
            表格> 
       
 
       
       
       
       
         
            MyValidator.init(); 
        腳本> 
    正文> 
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn