I am working on phone nr edtition and I would like add ‘.’ between part nr only if user does not input them.
var phone = ‘04/380.14.45’
var sep1 = phone.search(‘/’)
var sep2 = phone.search(‘.’)
if …
var sep1 becomes 2 but
var sep2 stay always 0
Why the function refuse to search the ‘.’ character ?
Thanks for your help.
DomTom