Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$("#field_phone_number").on('change', function() {
$("#field_stripped_phone_number").val( $(this).val().replace(/[^\d+]/g, '') );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment