I just need something simple. Everything I'm finding when I search is super complicated and has too many bells and whistles with accordian effects & backgrounds.A little bit of information about the product...
[+] Click here to see more!
Simple DIV Layer Expand/Collapse
Moderator: General Moderators
- SheDesigns
- Forum Commoner
- Posts: 42
- Joined: Tue Nov 18, 2008 9:51 am
- Location: Buffalo, NY
Simple DIV Layer Expand/Collapse
I'm looking for a SIMPLE script to expand a collapse a div with a (See More) link. The data is pulled from a database, and displays inside a table cell.
Re: Simple DIV Layer Expand/Collapse
A quick google search for 'toggle div javascript' comes up with:
http://www.netlobo.com/div_hiding.html
http://www.harrymaugans.com/2007/03/05/ ... t-and-css/
http://www.dustindiaz.com/seven-togglers/
And those are just the top 3 results
http://www.netlobo.com/div_hiding.html
http://www.harrymaugans.com/2007/03/05/ ... t-and-css/
http://www.dustindiaz.com/seven-togglers/
And those are just the top 3 results
Re: Simple DIV Layer Expand/Collapse
If you don't need animation, just toggle the "display" style from "none" to "block" and back.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.