Based on bootstrap implementation Material design style form plug-in source download _javascript tips

Source: Internet
Author: User
Tags button type cloudflare

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.