Qulcuno mi potrebbe aiutare a correggere questo codice? Purtroppo non funziona, il valore me lo restituisce correttamente ma le funzioni substr e split mi vanno in errore, mi aiutereste?
var div = document.getElementById('wrapperBoxTitle');
var valore = div.firstChild;
valore = substr(5,2);
var val2 = valore.split(" ");