1$(function(){ 2 $("input[name='application_to_other_instituations']").on("change",function(){ 3 var instituationApplicationValue = $("input[name='application_to_other_instituations']:checked").val(); 4 if(instituationApplicationValue == "yes"){ 5 $(".other-instituation-name-location1").show(); 6 $(".other-instituation-name-location2").show(); 7 } 8 else{ 9 $(".other-instituation-name-location1").hide(); 10 $(".other-instituation-name-location2").hide(); 11 } 12 }); 13 $("#application_form").submit(function(e){ 14 e.preventdefault(); 15 var instituationApplicationValue = $("input[name='application_to_other_instituations']:checked").val(); 16 if(instituationApplicationValue == "yes"){ 17 if ($('#otherInstituationNameLocation1').val() == ""){ 18 alert('Please complete the other Instituation Name and Location1 field.'); 19 } 20 if ($('#otherInstituationNameLocation2').val() == ""){ 21 alert('Please complete the other Instituation Name and Location2 field.'); 22 } 23 } 24 }); 25});
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.