Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Jun 2010
    Thanked 0 Times in 0 Posts

    Perhaps I didn't ask the right way the first time.

    I solved the issue by completely removing the LINK, and simply adding the onclick function. thank you anyway.


    I'm sorry if perhaps my first post was to confusing, I hope I can better describe what I'm trying to achieve here.

    Here's what's going on.

    When a link is 'clicked' such as
    <a href="javascript:animatedcollapse.toggle('test')"> I expand and Collapse!</a>
    it will 'expand' and 'collapse' a DIV. The script works completely fine, unless I try to place a
    <input type="button" value="myButtonValue" />
    as the link, so I can submit the information through a php request.

    if I use an image, or text, it works fine, but I need to be able to use a button.

    You can see an example of a working and non-working 'collapsing and expanding DIV' if you Click Here.

    Is there another way around this? I'd even venture to use another form of 'expanding' and 'collapsing' JavaScript if anyone could provide...

    Thank you.
    Last edited by Vsalrhal; 06-15-2010 at 08:03 PM. Reason: I solved the issue.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts