This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Removing a row from a table using JavaScript not working 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 "Removing a row from a table using JavaScript not working" Watch "Removing a row from a table using JavaScript not working" New topic
Author

Removing a row from a table using JavaScript not working

John Zwick
Ranch Hand

Joined: Mar 02, 2009
Posts: 34
Hi everyone, I am having trouble getting my javascript function to delete a specific row from a table. Any ideas what I am doing wrong?

here is my javascript function:


Here is my table where there is a 'Remove' link on each row that passes the row number to the javascript function.

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The trouble would be, the error would be, the browser would be?

Eric
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

I just test your code on firefox and it works fine..


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
 
subject: Removing a row from a table using JavaScript not working
 
Similar Threads
how to insert multiple check box values into the database using single parameter
how to take javascript array values in php form
spaces while populating using s:iterator
Resetting values of table cells in Javascript
Space not releasing on toggle of divs