Using div and dynamically creating it with for loop would be the way i will do it. If you have any better idea with displaying it i would be thankful. Reading and adding buttons is not problems. I was just looking for display. How to put id in session via javascript or using jsp code block? function for getting div id:
function getParent(el, parentTagName){
var obj = el;
while(obj.tagName !== parentTagName){
obj = obj.parentNode;
}
alert(obj.id);
}
html code looks like this:
Thanks
modified on Friday, April 29, 2011 11:35 AM