<input id="license" type="submit" value="After confirming that the information is correct, submit the application" class="btn">
$("#license").on("click",function(){
var credit_code=$("input[name='credit_code']").val();
var branch_license=$("input[name=' branch_license']").val();
var legal_person=$("input[name='legal_person']").val();
var id_validity=$('input[name="id_validity"]:checked'). val();
var tel=$("input[name='tel']").val();
//registration number/credit code
if(credit_code==''){
console.log('111')
alert ("The registration number/credit code is not filled in");
console.log('2222')
return false;
}
})