If you do not want to take over the management of phone number forms, this plugin can be useful.
Github Page
required
optional
$('.phone-inputs').on('phone.inputs.debug', function(event, data){});
$('#phone-inputs-test-form').serializeArray();