在 div 中获取 link 值

Get link value in div

我在 div 中有一个 link 像这样:

<div id="select-document-themes" class="dropdown">
                <a class="btn sort sort-down" href="#">All</a>
</div>

请问select"All"和jQuery或Javascript怎么样?

谢谢!

试试这个:-

var txt = $("#select-document-themes .btn").text()