Hi,
I have probably a really easy question but i just cant figure it out.
I want to add a <div> element every time it goes through a loop a .each in this case.
I had it working in prototype before:
new Element.insert($('dashboard-column-'+a), '<div class="dashboard_column"><h2><span style="color: #aaa; float: right; font-size: 10px;">'+period_title+'</span>'+report.val()+'</h2><div id="dashboard-'+report.key+'"><img src="img/loading-small.gif" /></div></div><br />');
Help is really appreciated.
It works now. Thank you it wasnt your script that didnt work it was my own.
Thank you,
Robin