A little jQuery help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bird
    Confirmed User
    • Jan 2005
    • 4365

    #1

    A little jQuery help

    I got this jQuery fucntion I want to call like <a href="#" onclick="SomeJqFunc();">click<a>

    what can I do to show the jQuery fuction....in the onclick= SomeJqFunc();

    Im looking to just show() a Controls container from here myViewport.find('.panorama-control').show();


    This did not work..
    a href="#" onclick="myViewport.find('.panorama-control').show();">click<a>
    ICQ:268731675
  • ProG
    Confirmed User
    • Apr 2009
    • 1319

    #2
    What is 'myViewport'?
    History will be kind to me for I intend to write it.

    Comment

    • Bird
      Confirmed User
      • Jan 2005
      • 4365

      #3
      I got it.... <a href="#" onclick="$('.panorama-control').show();return false;"
      ICQ:268731675

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        or you could just assign an id to the href so you dont have to put that onclick in every a href, and let jquery handle it
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • Serial Pervert
          Confirmed User
          • Mar 2008
          • 2666

          #5
          wish i could help you...

          Comment

          Working...