This is basic.
(这是基本的。)
How do I get the value 'This is my name' of the above span?
(如何获得上述范围的“这是我的名字”的值?)
<div id='item1'> <span>This is my name</span> </div>
I think this should be a simple example:
(我认为这应该是一个简单的例子:)
$('#item1 span').text();
or
(要么)
$('#item1 span').html();
1.4m articles
1.4m replys
5 comments
57.0k users