How to validate international phone number using javascript

    You can do this in following way using the following javascript function pass the phone number you can use your custom code instead of alert messages
    function val_phone_number (number) {
        var regexp = /^\+(?:[0-9] ?){6,14}[0-9]$/;
        if (regexp.test(number)) {
           alert("Phone number is valid");
        } else {
           alert("Phone number is invalid");
    Note: The number starts with (+) plus sign, followed by the country code and number. For e.g : +65 6538 1111
    Average: 5 (1 vote)