This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes javascript div issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript div issues" Watch "javascript div issues" New topic

javascript div issues

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
I am trying to show/hide details related to a table row by clickind details button. For some reason the first item is always diplaying the details in div. No matter how many items I include and the function is called however it does show/hide details for the first item.

and in my html I have


Thank you for your time
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
You have invalid HTML. You can not put a div inside a table like that. It has to be in a td.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: javascript div issues