koloa wrote:
<div id='desc_div'<%i.to_s%>> </div>
Try:
<div id='desc_div<%i.to_s%>'> </div>
I moved your tick over. And this is better:
<div id='desc_div_<%i.to_s%>'> </div>
hi i got it to work with this...
by converting the div string
<% s = "<div id=desc_div#{i.to_s}> </div>"%> <%= s %>
And that creates (relatively) ill-formed HTML. I'm aware that HTML is often "anything goes", but you don't have quotes around the id=desc_div2. I always feel safer with id='desc_div2', because many more things besides web browsers should read my HTML.