Get value of Span Text

后端 未结 5 1117
萌比男神i
萌比男神i 2020-12-05 01:37

I have a span with class=\"span\" and a hidden field class=\"dropdown\".

The span text changes, and I need to grab the text an

5条回答
  •  忘掉有多难
    2020-12-05 02:32

    var span_Text = document.getElementById("span_Id").innerText;
    
    console.log(span_Text)
    I am the Text 

提交回复
热议问题