add html after a certain div - using prototype? How

Posted by Ali on Stack Overflow See other posts from Stack Overflow or by Ali
Published on 2010-05-05T12:45:30Z Indexed on 2010/05/05 12:58 UTC
Read the original article Hit count: 330

Filed under:
|

Hi guys I want to be able to append divs to my page such that they are appended after a div of a certain class and before teh divs that follow it i.e:

<div class="header">Header DIV</div>
<!-- Want to add using javascript some HTML right here-->
<div class="one-basic-div">...</div>
<div class="one-basic-div">...</div>
<div class="one-basic-div">...</div>
<div class="one-basic-div">...</div>

Its basically raw html I wish to add - how can I do it.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about prototypejs