Hello. I borrowed a nice script for comparing (2) fields from @Michelle Suryadi and attempted to add the functionality of a 3rd field for comparison. Of course it didn't work, thus why I am composing this request for help.
Field 2 is filled by a data lookup. Fields 3 and 4 are filled by scans done by the user.
Finally Field 5 is an HTML message we Hide or unhide (if either field 3 or 4 do NOT match field 2).
I really, tried not to post as I don't want to waste anyone's time, however, I do not really know what I am doing and I am hopeful the answer is quick for whoever volunteers to assist.
$(document).ready(function(){
$("#q5").hide();
$("#q3 input, #q4 input").change(function(){
if ($("#q2 input").val() != $("#q3 input").val()) {
$("#q5").show();
}
else if {
($("#q2 input").val() != $("#q4 input").val()) {
$("#q5").show();
}
else {
$("#q5").hide();
}
});
});