I am trying to check if two fields match! the requester name can not be the same as the approver name!
$(document).ready(function () {
$('.Submit').hide(); //hide the submit button by default
$Field28.change(function() {
// this is the email field that when its changed the name fields are validated! hide submit button if they match!!!
var name1 = document.getElementById(".RName").value;
var name2 = document.getElementById(".AName").value;
var $Field28 = $('#Field28');
if(name1 == name2) {
$('.Submit').hide();
}else {
$('.Submit').show();
});