Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

show/hide child elements based on the parent id

 
Jayasri Alaparthi
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
Can some one help me in displaying the Children elements based on the parent id.

These is my subproduct code


<logic:equal name="product" property="level" value="2">
<tr style="display:none" id="<%=prodTree.getKey()%>">
<td style="border-style: none; border-width: medium;"></td>
<td width="500"style="color:blue;border-style: none; border-width: medium" height="17">
<bean:write name="product" property="name" /><%= subCnt++ %></td><td> </td></tr>

with regards,
Bhargavi
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<logic:equal ...

Showing code full of Struts tags in an HTML forum isn't the best of approaches. I'd suggest showing the rendered HTML that is produced.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should also be more explicit in your questions. Aside from knowing that you want to hide and show things, I really have no idea exactly what.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic