Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have a div which contains a few buttons (for log in). After user is logged in using Facebook and redirected back to the page, I would like to keep this same div in there, but replace all its content with a new content. (remove buttons and say hi).
Since I am new I wonder what would be a good practice :
Create another div inside the first, set it to be hidden then when needed hide the first and show the other
Create another div outside, and do the same as 1.
a better way ?
Doing 1 or 2 - I don't want the hidden div to take space when its hidden.
How would you hide/show a div using Javascript ?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)