var valore = document.getElementById('id_dato_al_tag').value;
Il piu' comune questo poi potresti prendere l'elemento anche per nome tag, classe o altro.
var valore = document.getElementById('id_dato_al_tag').value;
Il piu' comune questo poi potresti prendere l'elemento anche per nome tag, classe o altro.