3
I need to make a condition, where I check on a input the user entered the character ..
So I’m making one if where I do split with my input value.
if (idCliente.split('.')[1].length > 0)
If the input has . everything goes well, but if there is no javascript error in .length (says it is undifined) and does not run the rest of the function.
Fiddle here
There is another way to make the condition?
Where do you get
idClientecan put this code?– Sergio