SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Form manipulating table style
-
Jun 24, 2002, 23:31 #1
- Join Date
- Nov 2000
- Location
- Oslo, Norway
- Posts
- 413
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Form manipulating table style
Hi,
I would like to use Javascript (triggered by various form elements) to instantly update the style of a table (font size, font face, background colours and so on). I did my share of reading up on DOM sometime in the past, and I belive that the key to success lies within it, but I can't understand how to access the style of a specific table and change it.
If anyone could point me to a good tutorial, or give me a few lines of code, I would greatly appreciate it !
Thanks in advance !
-
Jun 25, 2002, 00:26 #2
- Join Date
- Feb 2002
- Location
- Gatwick, UK
- Posts
- 1,206
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Easy enough - use classes.
< table id="first" class="blue-table">
....
to change the class
document.all.first.className='other class name';
Flawless---=| If you're going to buy a pet - get a Shetland Giraffe |=---
Bookmarks