Solved

adding second interactive table to the page

Posted on 2009-07-04
2
174 Views
Last Modified: 2013-11-19
In the following page, the first one-row table is interactive.  Letters will appear in the cells when clicking the 'show letters' button, and disappear when clicking the 'reset' button.

But the second table is not interactive, but static.  I like to see that the letters of 'FLORIDA' will appear when clicking the 'show letters' button, and go away when clicking the 'reset' button.

http://www.pinyinology.com/listing/quote/test2.html
0
Comment
Question by:fuli3665
2 Comments
 
LVL 2

Accepted Solution

by:
kjaswal earned 500 total points
ID: 24777328
Try the attached file (change the extension to .html from .txt).  I used an array to store the separate strings to be printed.  Each table is generated to accommodate the length of the string, and is given a special id that incorporates its loc (location in the array).  Then, when the buttons are clicked, the loc variable is set and the table is either updated or cleared.
test2.txt
0
 

Author Comment

by:fuli3665
ID: 24779918
thanks a million.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

777 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