code for verification of both phone and Email?
Because I’m working on Graduation project that requires verification,
I tried to write them also I search for some code but they did not work for me..
If you could help me I will appreciate.
I can share some code snippet func = (email) =>{ let reg = /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/; if(reg.test(text) === false) {alert(`Email is Not Correct); return false; }else {alert(`Email is Correct`); } }; based on this do for phone
Обсуждают сегодня