I have implemented this function (libphonenumber javascript )in a website http://www.phoneformat.com/
How do i get the value returned by this html tag. Whether Yes
you can use this:
document.getElementById("phone_valid").innerHTML;