Solved

Best way to edit a table in browser

Posted on 2012-03-27
1
154 Views
Last Modified: 2012-04-18
I'm trying to have an HTML table that someone can click a <td> tag, type, and have whatever they type show up in that tag.

What would be the best way to do this?
Thanks,
-JWW


<table>
<tbody>
      <tr>
            <td>A</td>
            <td class="edit">B</td>
      </tr>
      <tr>
            <td>C</td>
            <td class="edit">C</td>
      </tr>

</tbody>
</table>

Open in new window

0
Comment
Question by:JustinW
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
bartvd earned 500 total points
ID: 37773576
<html>
<head>
<script type="text/javascript">
function displaymessage(element)
{
var reply=prompt("Enter a value:","");
element.innerHTML=reply;
}
</script>
</head>

<body>
<table>
<tbody>
      <tr>
            <td onclick="displaymessage(this)">A</td>
            <td onclick="displaymessage(this)">B</td>
      </tr>
      <tr>
            <td onclick="displaymessage(this)">C</td>
            <td onclick="displaymessage(this)">D</td>
      </tr>

</tbody>
</table>
</body>
</html>
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
arrays and radio buttons 10 40
Jquery driving me nuts... 14 29
BatchFile-Disk Detection 23 32
Change javascript filter code from OR logic to AND 5 17
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question