﻿$(document).ready(function() {
    $(".validatedForm").validate({
        messages: { //custom messages
            StaffProfileEmailAddress: { email: 'Please enter valid email address' }
        },
        rules: {
            //Add / Edit Staff
            StaffProfilePassword: { minlength: 5 },
            StaffProfileConfirmPassword: { required: true, minlength: 5, equalTo: "#StaffProfilePasswordString" }
        }        
    });
    
    $('#BlogCommentFullName').click(function() {
        if ($('#BlogCommentFullName').val() == "Name")  $('#BlogCommentFullName').val('');
    });
    
    $('#BlogCommentEmailAddress').click(function() {
        if ($('#BlogCommentEmailAddress').val() == "Email")  $('#BlogCommentEmailAddress').val('');
    });
    
    $('#BlogCommentText').click(function() {
        if ($('#BlogCommentText').val() == "Comment")  $('#BlogCommentText').val('');
    });    
    
});



