Load function onClick and show in selected <div>

Discussion in 'JavaScript' started by batoo, May 27, 2010.

  1. #1
    well well... i made jquery tabs, for most comment, top rated, most viewed and most rated posts. But i noticed that all four queries load on page load.

    So i need something like jquery Ajax Tabs but...

    1. Load only first function on default first tab , not on all tabs.
    2. On tab click - call function and show.

    Any1 with some idea?
     
    batoo, May 27, 2010 IP
  2. rkstech

    rkstech Active Member

    Messages:
    195
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #2
    on your HTML body, call the function that you want to load and call the other functions as an when needed
     
    rkstech, May 28, 2010 IP