Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 22nd, 2016, 02:33 PM
Registered User
Join Date: Jan 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get the value of a cell table when clicking on it


I'm new here and in the web programing world.

I'm trying to do a CRUD application in PHP.

What I'm trying to do is this:

I read a database table and show the records in a table grid. I want to click in one of the records and call another page that allows me to modify the information.

I was able to make the ID cell clickable with JavaScript and call the other page.

I used the onclick event to call a function and that's the one that will call the new page. I need to get the cell value (it's the ID number of the record to be modified) in order to pass this as parameter to the new form.

What I can't find how to do is to get the value of the cell. I tried the getElementById method, but is not doing what I need.

Any ideas.

Everything is welcome!

Thanks in advance!

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem getting cell value from table kirangentlebreeze1987 Javascript 1 August 29th, 2011 02:08 PM
layers in table cell dearmisskat HTML Code Clinic 12 March 10th, 2007 04:46 AM
reading from a table cell? Atomsk Access VBA 2 September 28th, 2006 07:46 AM
Hyperlink in a cell table amc Dreamweaver (all versions) 33 August 5th, 2004 12:11 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.