Hello,
I am using the following segment of code:
.... to create 39 numbers that change line at the 8th item, i.e.Code:<core:forEach begin="1" end="39" var="i"> <td><div class="numberOff" id="select${groupIndex}_${i}"><core:out value="${i}"/></div></td> <core:if test="${((i%(8)) eq 0)}"> </tr><tr> </core:if> </core:forEach>
1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16
17 18 19 20 21 22 23 24
25 26 27 28 29 30 31 32
33 34 35 36 37 38 39
Then, by using the following segment of code, i get the numbers (in random order) that i wish to change their div class, i.e.
How can I change the div class from numberOff to numberOn (numberOff and numberOn are the styles that i have to use) of the numbers without messing with the way that those are dynamically created.Code:<logic-el:iterate id="num" indexId="index" name="couponForm" property="coupon.games[0].g036.groups[${groupIndex}].numbers"></logic-el:iterate>
Please note, that i cannot use any hidden fields and javascript code, since our purpose is to have this page statically show preselected results and not posting anything, using a form.
Thank you very much.
Frini



Reply With Quote
Bookmarks