Add a class to the first anchor, something like ui-accordion-header.
Then use the header-option: { header: ".ui-accordion-header" }.
Jörn
On Fri, Oct 3, 2008 at 11:27 PM, Microbe <[EMAIL PROTECTED]> wrote:
>
> Hey there,
>
> I am using according and it all works as expected EXCEPT that where
> there is a link in the expanded DIV, clicking on the link simply
> closes the DIV again and doesn't shove off to the next page.
>
> Any thoughts on why?
>
> I have looked at the demos and I can't see that I am doing anything
> different.
>
> CODE:
>
> <script type="text/javascript" src="includes/jquery.accordion.js"></
> script>
> <script type="text/javascript">
> jQuery().ready(function(){
> jQuery('#list1b').accordion({
> autoheight: false
> });
>
> var accordions = jQuery('#list1b');
>
> jQuery('#switch select').change(function() {
> accordions.accordion("activate", this.selectedIndex-1
> );
> });
> jQuery('#close').click(function() {
> accordions.accordion("activate", -1);
> });
> jQuery('#switch2').change(function() {
> accordions.accordion("activate", this.value);
> });
> jQuery('#enable').click(function() {
> accordions.accordion("enable");
> });
> jQuery('#disable').click(function() {
> accordions.accordion("disable");
> });
> jQuery('#remove').click(function() {
> accordions.accordion("destroy");
> wizardButtons.unbind("click");
> });
> });
> </script>
>
> and then
>
> <a>Do I have to register with you, and what details do you ask for?</
> a>
> <div class="faq">
> <p>If you just want to look at someone's
> announcement you don't
> have to register with us. However, if you want to create a profile or
> add comments to other people's profiles, you have to register.<br /
>><br />Registration only involves supplying your user name, a valid
> email address, and agreeing to our terms of use, which is written in
> plain English on our <a href="http://test.website.com/
> policies.php">Policies and Legal</a> page.
> </p>
> </div>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---