I have div tag with css class name. div class name is same in for other div tags. I want findout a text inside the div tag with css class name and replace with next text
<div class="ms-listdescription">
Share a document with the team by adding it to this document library.
</div>
with new text
<div class="ms-listdescription">
Share a document with the team by adding it to this document library
<br/> new text.
</div>
Update: This is very simple just find text “Share a document with the team by adding it to this document library” in if it is matches text then only append new text with existing text.
You can check that it contains text by using
:contains().