亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

網頁制作,動靜態代寫

標簽:
Html/CSS

致我最橙色的青春,把它留在心里的最底部。
div+css设计,bootstrap架构,960布局。
4页网站,分别为首页、学院简介、照片、联系方式等。
网站页面简洁大气,像不拘的自己,在包容了生活中的所有的欢笑与悲伤的点滴之后,终将汇聚成我心底最沉淀的橙色。
这是一个极富个人色彩的OK网站。

+2425691680

添加了表单注册页面,并进行验证,javascript代码如下,使用的是jQuery的validate验证插件

<script>
$(document).ready(function() {
$("#signupForm1").validate({
rules: {
nicheng: "required",
username: {
required: true,
minlength: 2
},
password1: {
required: true,
minlength: 5
},
confirm_password1: {
required: true,
minlength: 5,
equalTo: "#password1"
},
email1: {
required: true,
email: true
},
agree1: "required"
},
messages: {
nicheng: "请输入昵称",
username: {
required: "请输入用户名",
minlength: "用户名至少两位数"
},
password1: {
required: "请输入密码",
minlength: "密码至少5位数"
},
confirm_password1: {
required: "请输入密码",
minlength: "密码最少5位数",
equalTo: "请输入相同的密码"
},
email1: "请输入有效的电子邮箱",
agree1: "请勾选协议"
},
errorElement: "em",
errorPlacement: function(error, element) {
// Add the help-block class to the error element
error.addClass("help-block");

      // Add `has-feedback` class to the parent div.form-group      // in order to add icons to inputs      element.parents(".col-sm-5").addClass("has-feedback");      if (element.prop("type") === "checkbox") {        error.insertAfter(element.parent("label"));      } else {        error.insertAfter(element);      }      // Add the span element, if doesn't exists, and apply the icon classes to it.      if (!element.next("span")[0]) {        $("<span class='glyphicon glyphicon-remove form-control-feedback'></span>").insertAfter(element);      }    },    success: function(label, element) {      // Add the span element, if doesn't exists, and apply the icon classes to it.      if (!$(element).next("span")[0]) {        $("<span class='glyphicon glyphicon-ok form-control-feedback'></span>").insertAfter($(element));      }    },    highlight: function(element, errorClass, validClass) {      $(element).parents(".col-sm-5").addClass("has-error").removeClass("has-success");      $(element).next("span").addClass("glyphicon-remove").removeClass("glyphicon-ok");    },    unhighlight: function(element, errorClass, validClass) {      $(element).parents(".col-sm-5").addClass("has-success").removeClass("has-error");      $(element).next("span").addClass("glyphicon-ok").removeClass("glyphicon-remove");    }  });})

</script>

點擊查看更多內容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優質文章

正在加載中
數據庫工程師
手記
粉絲
52
獲贊與收藏
361

關注作者,訂閱最新文章

閱讀免費教程

  • 推薦
  • 評論
  • 收藏
  • 共同學習,寫下你的評論
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學

大額優惠券免費領

立即參與 放棄機會
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

舉報

0/150
提交
取消