Hi,
I am trying to write a simple Javascript code to hide the submit button based on three fields. Looks like a simple task but I am not sure where I am going wrong.
Conditions :- when two of those three fields are checked (Field 86 called magiq and field 87) and third field (#103) has amount ($)/value entered in that, show the submit button. I have pasted the code I am using and an image also. Any help will be appreciated.
$(document).ready(function(){
// hide submit by default
$('.Submit').hide();
// apply event handler to CHECKBOX inputs
$('.showSubmit input').change(function(){
// if 1 or more checked selections are found
if(($('.showSubmit input[value="Updated"]:checked').length > 0)&&
($('.showSubmit input[value="UpdatedP"]:checked').length > 0)&&
($("#Field103").val() !="")
){
// show submit button
$('.Submit').show();
}
// otherwise
else{
// hide submit button
$('.Submit').hide();
}
});
});