if(fromShortcode.val() == toShortcode.val()){
alert('same values entered in both the field!');
NWF$(shortCode).addClass('border-red');
}
else
{
NWF$(shortCode).removeClass("red-border");
}
});
});
this is te code I have written where if the 'if' condition gets true then the list lookup field(shortCode) is to be set to red border or it should remain black itself