在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):emilsgulbis/jQuery-material-form-fields开源软件地址(OpenSource Url):https://github.com/emilsgulbis/jQuery-material-form-fields开源编程语言(OpenSource Language):CSS 59.8%开源软件介绍(OpenSource Introduction):jQuery-material-form-fieldsjQuery Material Design form (input, textarea) ##Installation Include script after the jQuery library (unless you are packaging scripts somehow else): <script src="/path/to/jquery.material.form.min.js"></script> Include css style: <link rel="stylesheet" type="text/css" href="path/to/jquery.material.form.min.css"> ##Usage ####HTML <form action="" class="material">
<input type="email" name="email" placeholder="E-mail" required>
<input type="text" name="name" placeholder="Name">
<textarea name="message" placeholder="Message"></textarea>
<select name="your-select-name" placeholder="Select one of these">
<option value="1">Option</option>
<option value="2">Super option</option>
<option value="3" selected>Awesome option</option>
<option value="4">WORST option ever</option>
</select>
<select name="your-select-name" placeholder="You can select multiple" multiple>
<option value="1">Option</option>
<option value="2" selected>Super option</option>
<option value="3" selected>Awesome option</option>
</select>
</form> ####JS $('form.material').materialForm(); ####Validation This plugin works with jQuery validation http://jqueryvalidation.org/ $('form.material').validate({
errorPlacement: function(error, element) {}
}); // Apply validator with no error messages but classes only |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论