Answers for "javascript validate number only"

0

javascript validate number only

function validateNumber(e) {
            const pattern = /^[0-9]$/;

            return pattern.test(e.key )
        }
Posted by: Guest on July-15-2021

Code answers related to "javascript validate number only"

Code answers related to "Javascript"

Browse Popular Code Answers by Language