How to Format mask Phone number eg:(999) 999-9999 in oracle apex.
Javascript code:
document.getElementById('P1_PHONE_NO').addEventListener('input', function (y) {
var a = y.target.value.replace(/\D/g, '').match(/(\d{0,3})(\d{0,3})(\d{0,4})/);
y.target.value = !a[2] ? a[1] : '(' + a[1] + ') ' + a[2] + (a[3] ? '-' + a[3] : '');
});
Thanks For Watching
#oracleapex #oracle #apex
Share, Support, Subscribe!!!
Subscribe: / @techertzia798
instagram: / techertzia
About : Techertzia is a YouTube Channel, where you will find technological videos.