<script language="javascript" type="text/javascript" src="../js/jquery.validate.js"
charset="gb2312"></script>
$(document).ready(function(){
$("#form1").validate({
rules: {
Txt_Title: {required:true },
Txt_ScheNumber: {required:true},
Txt_CompanyName :{required:true },
Txt_ProjName: {required:true },
txt_Address: {required:true },
Txt_Explation: {required:true }
},
messages: {
Txt_Title:{required: "<font color='red'> 请输入日程标题</font>"},
Txt_ScheNumber:{required: "<font color='red'> 请输入日程编号</font>"},
Txt_CompanyName:{required: "<font color='red'> 请输入公司名称</font>"},
Txt_ProjName:{required: "<font color='red'> 请输入项目名称</font>"},
txt_Address:{required: "<font color='red'> 请输入地址信息</font>"},
Txt_Explation:{required: "<font color='red'> 请输入日程说明</font>"}
}
});
$("#Save").click(function() {
return $("#form1").valid();
});
$("#lbtn_save").click(function() {
return $("#form1").valid();
});
});
<asp:TextBox ID="Txt_Title" CssClass="InputStyle" runat="server"></asp:TextBox>
..........