Ver originalfunction colocar(txt){ document.getElementById('el_div').innerHTML = txt.length > 10 ? txt.substr(0,10) + '...' : txt;}