1$(function(){ 2 $("input[name='marital_status']").on("change",function(){ 3 var maritalStatusValue = $("input[name='marital_status']:checked").val(); 4 if(maritalStatusValue == "yes"){ 5 $(".no-of-children").show(); 6 } 7 else{ 8 $(".no-of-children").hide(); 9 } 10 }); 11 $("input[name='traveled_outside_nigeria']").on("change",function(){ 12 var travelValue = $("input[name='traveled_outside_nigeria']:checked").val(); 13 if(travelValue == "yes"){ 14 $(".purpose-travel-outside-nigeria").show(); 15 } 16 else{ 17 $(".purpose-travel-outside-nigeria").hide(); 18 } 19 }); 20 $("input[name='relative_country_intrested']").on("change",function(){ 21 var relativeRelationValue = $("input[name='relative_country_intrested']:checked").val(); 22 if(relativeRelationValue == "yes"){ 23 $(".relative-country-relation").show(); 24 $(".detail-relatives-intrested-country").show(); 25 $(".relatives-residence-status").show(); 26 } 27 else{ 28 $(".relative-country-relation").hide(); 29 $(".detail-relatives-intrested-country").hide(); 30 $(".relatives-residence-status").hide(); 31 } 32 }); 33 34 $("#background_form").submit(function(){ 35 e.preventdefault(); 36 var maritalStatusValue = $("input[name='marital_status']:checked").val(); 37 if(maritalStatusValue == "yes"){ 38 if ($('#noOfChildren').val() == ""){ 39 alert('Please complete the No Of children field.'); 40 } 41 } 42 43 var travelValue = $("input[name='traveled_outside_nigeria']:checked").val(); 44 if(travelValue == "yes"){ 45 if ($('#purposeTravelOutsideNigeria').val() == ""){ 46 alert('Please complete the purpose Travel Outside Nigeria field.'); 47 } 48 } 49 50 var relativeRelationValue = $("input[name='relative_country_intrested']:checked").val(); 51 if(relativeRelationValue == "yes"){ 52 if($('#relativeCountryRelation').val() == "") 53 { 54 alert('Please complete the Relative Country Relation field.'); 55 } 56 if($('#detailRelativesIntrestedCountry').val() == "") 57 { 58 alert('Please complete the Detail Relatives Interested Country field.'); 59 } 60 if($('#relativesResidenceStatus').val() == "") 61 { 62 alert('Please complete the Relative Residence Status field.'); 63 } 64 } 65 66 }) 67 68 69})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.