File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes getElementbyId not working in Mozilla Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "getElementbyId not working in Mozilla" Watch "getElementbyId not working in Mozilla" New topic

getElementbyId not working in Mozilla

Raghusham Sankargal
Ranch Hand

Joined: Oct 10, 2005
Posts: 59
In my javascript function I am using getElemenyById() function to extract the value of the text box. This function is working fine and returns an object in Internet Explorer but null when I tried the same in Mozilla FireFox. Could any one please tell me why is that happening and to fix that. Is there any alternative to the function I am using. Thanks in advance.

Raghusham Sankargal
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Do you have an id on the textbox?

I agree. Here's the link:
subject: getElementbyId not working in Mozilla
It's not a secret anymore!