If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

a onclick to change jquery class

JQuery allows for the sections beneath to be clicked on and expanded. This happens as the class is changed to faqopened which exposes the div.

There is also a contents section. The 6th link "Retrospective criminalisation" includes an onclick call which changes the class for the Retrospective criminalisation section below in the same way that clicking on the link does.

But the class change does not seem to expand the div as hoped and expected. If it did, the contents would shift the page position downward to the correct point and open the div at the same time.