File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes show/hide child elements based on the parent id Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "show/hide child elements based on the parent id" Watch "show/hide child elements based on the parent id" New topic
Author

show/hide child elements based on the parent id

Jayasri Alaparthi
Ranch Hand

Joined: Aug 14, 2006
Posts: 67
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

Joined: Jan 10, 2002
Posts: 61094
    
  66

<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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61094
    
  66

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: show/hide child elements based on the parent id