Question and answer is powered by AnsPress.io
I have a div element and also some child element. I am new in jquery.
Now I want to change text of the child element when click on a button.
<pre> <div class="parent-class"> <span class="child">Demo1</span> <span class="child">Demo2</span> </div> </pre>