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
If you need to include HTML comments then consider using contents() method
$('#mydiv').contents()
Other wise html() method or even text() will be what you are looking for because val() purpose is for form elements ;)
html()
text()
val()