Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Combining two comands.

    Hi,

    I need to combine the two following commands into one link.

    <a href="javascript:void(0)"onClick="$( '#p1' ).slideToggle()">Membership Application</a>

    <a href="javascript:jumpScroll()">Jump to another place on the page</a>
    Thanks a lot in advance for your help.


  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,202
    Thanks
    80
    Thanked 4,564 Times in 4,528 Posts
    Code:
    <a href="#" onclick="$( '#p1' ).slideToggle(); jumpScroll(); return false;">Membership Application</a>
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    alwaystrying (07-07-2012)

  • #3
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks a lot!!! works a treat.


  •  

    Posting Permissions

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