我有div標籤,我在該標籤中有一個自由文本(在它自己的)。Jquery選擇Div標籤中的自由文本
<div id= "myDiv">
This is free text
</div>
如何選擇該自由文本並根據它的值,我做了一些其他的東西。
如何選擇該自由文本?
更新:在div標籤中的數據是這樣的
<div id= "myDiv">
This is free text one
This is free text two
This is free text three.
</div>
我要選擇的第一個?可能嗎?
$( '#PartialUpdateSectionForCallBack')[0] .childNodes [0] .nodeValue –