/    Sign up×
Community /Pin to ProfileBookmark

Jquery collapsible div issue – please help!

Hi everyone,

I’m having an issue with a jquery collapsible div script that I found on the net.

My problem is that it the div expands when I click the expand image/link but it won’t collapse again after that.

There are a few other divs inside the div that I am collapsing that are set to float:left in css and when I take that away it works. Even putting   before the div that needs to collapse works but none of these are a solution. I would really like to get to the bottom of this.

I have put up a small test site to show you what I am talking about. [url]http://www.ultimatehomepage.co.za/pleasehelp/[/url]

I am a total JS / jQuery noob, so please explain in the simplest terms. Would really, really appreciate some help.

Thanks.
Webid 😑 ? 😑

to post a comment
JavaScript

5 Comments(s) ↴

Copy linkTweet thisAlerts:
@skywalker2208Mar 12.2010 β€”Β Can you provide a link to where you go the script from?
Copy linkTweet thisAlerts:
@skywalker2208Mar 12.2010 β€”Β I think you need to change your link to be something like

[CODE]
<a href="javascript:animatedcollapse.toggle('featureshidden')" rel="toggle[featureshidden]" data-openimage="collapse.png" data-closedimage="expand.png">

[/CODE]


Just to let you know that jquery has its own toggle function so you wouldn't even need this plugin. Take a look at

http://api.jquery.com/slideToggle/
Copy linkTweet thisAlerts:
@webidauthorMar 12.2010 β€”Β Thanks for the suggestion but I got the same result.

I would really like to get this particular script working for me since I am it has the fade effect and the image turns when you expand/collapse the div. I'm sure this could be done other ways but I don't have enough experience to implement it and I'm on a time limit in this case.

Going to hold out and hope someone else comes up with a solution.
Γ—

Success!

Help @webid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 β€” BETA 6.17,
whats_new: community page,
up_next: more Davinciβ€’003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciβ€’003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...