I need to make a condition, where I check if a input
has entered the character .
.
For this I am doing a if
where I make split
with value of my input.
if (idCliente.split('.')[1].length > 0)
If input
has .
everything works fine, but if there is no javascript error in .length
(says it is undifined) and does not run the rest of the function.
Fiddle here
Is there another way to do this?