I need help adding an element to a specific place in the body of the page.
Here is my page code.
<div id="div1>
<label id="label1"></label>
<input type="text1"></input>
<span id="span1"></span>
</div>
I want to add a button in the place where I put the comment above using jQuery. If the page syntax is fixed, is there a way to add an element as the third child of the parent div? I do not want to put placeholders and replace the string.
Thank.
source
share