标签:ror input orm required form code for shadow label
jQuery Validate 使用
<script src="js/b/js/jquery.validate.js"></script> <style type="text/css"> input.error{ border-color: #a94442 !important; box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #a94442 !important; } label.error{ padding-left: 16px; padding-bottom: 2px; font-weight: bold; color: #EA5200; }
<script type="text/javascript">
$("#formDiscount").validate({ rules : { title : "required" }, messages : { title : "请输入标题" } });
</script>
表单提交的时候就会自己验证;
标签:ror input orm required form code for shadow label
原文地址:http://www.cnblogs.com/stono/p/6616639.html