File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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
author
Rancher

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

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: div is null