html - jquery - output array result in 10x10 div format -


i have array in jquery contains 100 elements. want output data in 10 rows, each 10 columns, in html format inside html container div.

my frame similar this:

<div id="row1">   <div id="col1" style="float:left">data1</div>   <div id="col2" style="float:left">data2</div>   <div id="col3" style="float:left">data3</div> ... </div> <div id="row2">   <div id="col1" style="float:left">data1</div>   <div id="col2" style="float:left">data2</div>   <div id="col3" style="float:left">data3</div> ... </div> 

i thinking of nested 'for' loop, think there must better way. jquery .map function suitable this? suggestion?

tia


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -