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
Post a Comment