UnThreaded | Threaded | Whole Thread (18) | Ignore Thread Prev | Next
Author: dsbrady Big funky green star, 20000 posts 10+ Year Anniversary! Old School Fool Add to my Favorite Fools Ignore this person (you won't see their posts anymore) Number: of 16444  
Subject: Re: HTML / Javascript question Date: 8/1/2012 2:43 PM
Post New | Post Reply | Reply Later | Create Poll . Report this Post | Recommend it!
Recommendations: 5
First, try to avoid using document.all if you can. It's not really "proper" javascript (in that it was initially IE only and may not be supported by all browsers).

But, now that I'm looking more closely at your initial code, here's the problem:

You had this:
document.getElementById[fldID]
document.getElementById.ckbxABC

getElementById is a function, so it needs to be this:
document.getElementById(fldID)
document.getElementById('ckbxABC');

Try that and it should work in any browser since IE5 on.

dsbrady
Post New | Post Reply | Reply Later | Create Poll . Report this Post | Recommend it!
Print the post  
UnThreaded | Threaded | Whole Thread (18) | Ignore Thread Prev | Next

Announcements

Post of the Day:
TMFDeej's CAPS Blog

Activist Investors Unlocking Value at LSB Industries?
What was Your Dumbest Investment?
Share it with us -- and learn from others' stories of flubs.
When Life Gives You Lemons
We all have had hardships and made poor decisions. The important thing is how we respond and grow. Read the story of a Fool who started from nothing, and looks to gain everything.
Community Home
Speak Your Mind, Start Your Blog, Rate Your Stocks

Community Team Fools - who are those TMF's?
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and "#1 Media Company to Work For" (BusinessInsider 2011)! Have access to all of TMF's online and email products for FREE, and be paid for your contributions to TMF! Click the link and start your Fool career.
Advertisement