wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes cant display the table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "cant display the table" Watch "cant display the table" New topic
Author

cant display the table

selvakumar Thiyagarajan
Greenhorn

Joined: Oct 06, 2008
Posts: 28
Hi
I need to dynamically display the table using javascript. I have a table and a combo box.If a select an item from a combo box, the row which consists of selected item fro m the combo box should only appear and other rows should disappear.I have attached the code.The code works fine when i select an item for the first time.If change the item the table is not working properly



Please any body guide me to resolve this problem ,,,,Thanks in advance
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Your logic is rather flawed, you never changed the visibility of things after you hid them. Impossible with the logic.
You are referencing comb the wrong way inside the selectedIndex.

I thought I would be nice and fix your code and I used variable names that make sense when you read them ;):



Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cant display the table
 
Similar Threads
How to set timer for select the time am to pm on front end in a jsp page like calender for date?
window.print() not working IE
struts-2 (set values to action class)
Ajax, Struts, and a few pesky event based issues
spaces while populating using s:iterator