On my single page site, I have a script that is called to add a “read more” style link to a content area’s div.
When the button is clicked, it should change the class of the content area to allow view of all of the content.
When clicked again, it should hide the content.
This is the site I’m having trouble on: http://lexisnexis.stacklaw.com.au/
But, it is working OK on this site: http://nundoobah-retreat.com.au/about.html
What have I got wrong?
JQuery is throwing a script error — “can’t find .curCSS” when your script runs the
switchClassmethod.I’m not sure, but this may be due to the fact that you’re running an older version of JQuery UI than the JQuery core:
The
curCSSmethod was deprecated in JQuery 1.8.0.I’d suggest upgrading to the latest version JQueryUI. Alternatively, don’t use
switchClass(which belongs to JQuery UI), but instead useremoveClass/addClass, orslideUp/slideDown(part of the core JQuery library).