getelementbyid no work in firefox
getelementbyid no work in firefox
- Started
- Last post
- 3 Responses
- kinetic
what am i doing wrong here
http://www.evanbond.com/temp/tes…it seems that the document.getElementById line kills everything after it in that function
- heavyt0
you are passing in the elem name as the arg, but you are askign the DOM to find it by ID. you havent set the ID. you need to set the ID, and then pass in this.id.
ya dig?
- kinetic0
gotcha
i named my form and used document.formname.fieldname
works like a charm
now i have to figure out how to change css classes of the fields via js
- acescence0
you should actually do it by ID, the way heavyt describes, then change class by adding act.className='yourclassname';