鏈接內的文本,我有以下鏈接HTML:如何更改與jQuery
<a href="#" onclick="run(1); return false;" class="link" title="Remove item">[x]</a>
,我想使用jQuery來改變這是
<a href="#" onclick="run(1); return false;" class="link" title="Remove item">[x] Remove Item</a>
我想保留鏈接和所有的屬性,但改變鏈接內的文字
可能重複http://stackoverflow.com/questions/7415292/jquery-change-child-text) –
http://api.jquery.com/text/ –