Hola a todos
Tengo esta funcion :
{
var1=123456;
document.getElementById('INFO').innerHTML =var1
}
que hace aparecer un texto en esta linea del html:
<span id="INFO"></span>
Entonces cuanto ejecuto la accion aparece 123456 en la pagina.
Lo que necesito hacer es SOLO APAREZCAN LOS PRIMERO 4 CARACTERES
o sea 1234