Braibravies
New Member
I am making bunch of elements that look like the same I have \[code\]<div id="e1" class="e1"> <div class=box> <div class='b1'></div> <div class='b2'></div> <div class='b3'></div> <div class='b4'></div> </div> <div class='e11'></div> <div class='e12'></div> <div class='e13'></div> <div class='e14'></div> <div class='e15'></div> ...more elements<div><div id="e2" class="e2"> <div class=box> <div class='b1'></div> <div class='b2'></div> <div class='b3'></div> <div class='b4'></div> </div> <div class='e11'></div> <div class='e12'></div> <div class='e13'></div> <div class='e14'></div> <div class='e15'></div> ...more elements<div>\[/code\]They are almost the same and I have several \[code\]e3\[/code\] and \[code\]e4\[/code\] div...MY question is if there are anyways to reduce the codes and create them in js with an object (or better approach).Would anyone gives me a hint? Thanks a lot!