The jquery Material form plugin is a bootstrap-based, Material-style jquery form plug-in. The form modifies the bootstrap form to a flat-style form with a floating label effect, using custom styles and jquery.
Online preview Source Download
How to use
Using the material design style form requires the introduction of jquery,bootstrap related files and materialformstyles.css, materialform.js files in the page.
<link rel= "stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/ Bootstrap.min.css ">
<link rel=" stylesheet "href=" Css/materialformstyles.css ">
<script src=" JS /jquery.min.js "></script>
<script src=" Https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap /3.3.6/js/bootstrap.min.js "></script>
<script src=" Js/materialform.js "></script>
HTML structure
The HTML structure of the material design style form is fixed and you can copy the following code.
<div class= "Container" id= "Formoutterwrapper" > <div class= "container" id= "Forminnerwrapper" > <form id=
"Materialform" class= "form" method= "POST" action= "" role= "form" autocomplete= "off" > <div class= "Form-group" > <div class= "col-xs-6" > <label class= "Labels" for= "firstName" > User name </label> <input type= "text" class= "Forminput" id= "FirstName" name= "FirstName" > </div> <div class= "col-xs-6" > <label class= "
Labels "for=" LastName "> Nickname </label> <input type=" text "class=" Forminput "id=" LastName "name=" LastName "> </div> </div> <div class= "Form-group" > <div class= "col-xs-6" > <label class= "Labels" for= " Email "> Email </label> <input type=" text "class=" forminput "id=" email "name=" email "> </div> <div class= "col-xs-6" > <label class= "Labels" for= "Phone" > Contact Tel </label> <input type= "Tel" class= " Forminput "id=" Phone "name=" phone "> </div> </div> <div class= "Form-group" > <div class= "col-xs-12" > <label class= "Labels" for= "description" > Project description </label> <input type= "text" class= "forminput" id= "description" name= "description" > </div> </div> <div class= "Form-group" > <div class= "col-xs-12" > <button type= "button" class= "btn btn-primary Green Flatbutton" Id= "Submit" > Submit </button> </div> </div> </form> </div> </div>
The
GitHub address for this form plug-in is: Https://github.com/ch0chi/Jquery-Material-Form-Plugin