Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.addEventListener('load', function() {
- document.getElementById('submit').addEventListener('Click', function() {
- var sub = document.getElementById('data').value;
- var myphone = sub.search(/[0-9]{10}/);
- console.log("myphone");
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement