Jquery validation in button click

Jquery validation in button click



Hi,

In my aspx page has 3 buttons i need  if i click the OK button then the page should be validate I am working on VisualStudio 2008.

I am using these scripts

<script src="Scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>
<script src="Scripts/jquery.validate.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
$("#aspnetForm").validate({
errorClass: "error",

rules: {
<%=txtName.UniqueID %>: {
minlength: 2,
required: true
},
<%=txtEmail.UniqueID %>: {
required: true,
email:true
}
}, messages: {

required: "* Required Field *"
minlength: "* Please enter atleast 2 characters *"
}
});


});
</script>

I need when i click the Ok button after that the validation should be happen.
How could i do this one could any body help to me.

thanks and regards
brite