<div class="horzontialList" id="List"> {{range .}} {{if ne .Symbol " "}} <span>{{.Symbol}}</span> {{end}} {{end}}
var div=document.getElementById('List'); var point = div.getElementsByTagName('span'); console.log(point[0].innerHTML) Actual Output: Empty string Excepted Output: Y How to resolve this -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ab0c8947-34f0-4f9a-8718-7fd2d5b4a50co%40googlegroups.com.