Get content of span

Give this a shot:

var input = document.getElementById("myInput");
var text = input.innerHTML;

Leave a Comment