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 div is null 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 "div is null" Watch "div is null" New topic

div is null

Guna sekar
Ranch Hand

Joined: May 18, 2010
Posts: 32
I m creating div dynamically. In EDIT mode, if the value is in DB, then a field in the section will be checked and based on that next section will b eavailable. My problem is when i uncheck the checked on in EDIT mode, i m setting div.innerHTML=''. But when i check the same again, i m getting error like div is null but the div is present.

Anyone help me in this?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
If you want an answer, show some code.

I agree. Here's the link:
subject: div is null
It's not a secret anymore!