[Update new version v1.2.2] jCollapser v1.2
[UPDATE #2] New version more info here.
New version of the jQuery plugin jCollapser. See change log for changes.
Source can be found here.
Latest development source can be found in the SVN repository at http://code.google.com/p/progadv/source/checkout
Change Log:
v1.2.1:
-Fixed error with init time state settings.
v1.2:
-Add cookie state support
-Add initialization time state setting if cookie is not set.
v1.1:
-Restructure of code to allow multiple collapse elements on the same page
v1.0:
-Initial release
Advertisement
Categories: JavaScript, jQuery
JavaScript, jCollapser, jQuery


The jcollapser.html example that comes with the download doesn’t seem to be working in Firefox 3.5.3. Am I missing something?
I’ll take a look and see :)
You need to make sure that the urls to the javascript files are correct.
Great script MUCH appreciated!
In testing on IE I get a weird flicker when the divs are hidden and any html code inside of jcollapse1 and 2 results in a linebreak pushing the content down a line when the divs are open.
Other than that this thing is perfect.
Hi
is there any way to use it without so much extra html markup ???
thank you
using two id’s and two div’s to display + – is too much …
how about:
Some content …
So if used one div
you could change the class name via JQuery ???
Please can you show how to use your plugin with simple html markup ?
Than You
Yes you could use less markup.
For example you could remove the 2 divs for + and – and use a class for each indicator and just change the class. This will make the plugin cleaner as well.
I’m in the process of setting up a dev machine again. When that is done I’ll try to make a new version of this.
Hi, that would be great.
You could remove even the fieldset ID and target just one ID in one div :-)
I like your solution very much cause of cookies :-)
Is the plugin setup for more than two collapsible sections on a page?
When I have more than two instances on one page the 3rd onwards become nested within the second instance.
ie. When the second section is collapsed the 3rd onwards cannot be seen or accessed. Any tips?
Otherwise the plugin works very well, thanks for your development efforts!
I think there was a missing div in the example code somewhere.
Thought I fixed that already.
Thanks for the reply. After much head scratching I found a bug in one of my elements which fixed the problem. Sorry for the trouble and thanks again for a great product.