Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Expand and Collapse Div using HTML and JavaScript
(1 viewing) (1) Guest
All your queries regarding JavaScript will be solved in this forum
  • Page:
  • 1
TOPIC:

Expand and Collapse Div using HTML and JavaScript

Expand and Collapse Div using HTML and JavaScript 1 year, 4 months ago #488

  • palak
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 0
Hi,

Is there a way to expand and collapse div containing fields on click of button?

Re: Expand and Collapse Div using HTML and JavaScript 1 year ago #595

  • dhuruv
  • OFFLINE
  • Senior Boarder
  • Posts: 60
  • Karma: 0
On click of the button A, call a JavaScript function which will make the particular div visible and which will replace button A with button B.

when button B is visible, that button will call a JavaScript function which will make the div hidden and which will replace button B with button A.
  • Page:
  • 1
Time to create page: 1.26 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download