Welcome visitor
* Login
* Register
It is currently September 19th, 2019, 4:44 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 6 posts ] 
Author Message
  close a div element
PostPosted: August 21st, 2009, 3:16 pm 

Posts: 24
how can i close the div tag that is created using document.createElement('div');

thank you for your answers.


Top
 Profile  
 
  Re: close a div element
PostPosted: August 22nd, 2009, 11:11 am 
User avatar

Posts: 81
it is already closed. what are you trying to do?


Top
 Profile  
 
  Re: close a div element
PostPosted: August 22nd, 2009, 1:07 pm 

Posts: 24
why then is it that nothing is coming up?


Top
 Profile  
 
  Re: close a div element
PostPosted: August 22nd, 2009, 3:17 pm 
User avatar

Posts: 81
can we see your code please?


Top
 Profile  
 
  Re: close a div element
PostPosted: August 22nd, 2009, 3:42 pm 

Posts: 24
newdiv = document.createElement('div');
newdiv.innerHTML = 'just an example';


Top
 Profile  
 
  Re: close a div element
PostPosted: August 22nd, 2009, 3:52 pm 
User avatar

Posts: 112
function create(){
var newdiv = document.createElement('div');
   newdiv.setAttribute('id', 'nam');
   document.body.appendChild(newdiv);
   newdiv.innerHTML='fdskjfksdjfksd';
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron