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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 15376
Do you have an id on the textbox?

I agree. Here's the link:
subject: getElementbyId not working in Mozilla
Similar Threads
Doubt in Session.isNew()
pageContext.exception is not executing
Problem in Submit() Function
onload function()
refreshing problem using java script in internet explorer