Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getElementById :: old to compliant

Status
Not open for further replies.

tester321

Programmer
Mar 13, 2007
150
CA
Hi i've been changing some pages with form from the old document.form.val to using document.getElementById('val_ID')

I had to do this cause FF didn't like the old way, and also to make it compliant. I was wondering is there was a JS compliant book or a chart that shows the old versus the new ways? Thanks!
 
There's nothing wrong with accessing form elements without using an ID, and certainly nothing AFAIK in Firefox that will not allow this. So, it's probably some other error in your code.

Perhaps if you post your code, or a URL to it, and any error messages and details, we could diagnose the problem further?

I'd hate for you to think you need to change all your code when I don't believe that you do.

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
and certainly nothing AFAIK in Firefox that will not allow this

It will allow it, but it throws up a warning when written in this form:

document.form.val



[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top