Get a Div Value in JQuery

后端 未结 7 1994
无人共我
无人共我 2020-12-13 09:26

I have a page containing the following div element:

Some Value

How woul

相关标签:
7条回答
  • 2020-12-13 09:57

    if you div looks like this:

    <div id="someId">Some Value</div>
    

    you could retrieve it with jquery like this:

    $('#someId').text()
    
    0 讨论(0)
提交回复
热议问题