Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-19-2010, 04:18 PM   PM User | #1
VRM
New to the CF scene

 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
VRM is an unknown quantity at this point
code for selecting a tab and displaying specific content (not default content).

Hi guys,

i'm having trouble finding a way to display specific content in a specific tab.

I have three tabs on the page. Above the tabs i have some links (local files) that i would like to open within the "second tab". I managed to go this far:

$('#check1').click(function() { // check 1 is the id given to the link
$("#second").trigger('click'); // id name of the 2nd tab
return false;
});

the link takes you the the right tab, but how do i carry on with the code so that it selects & displays specific content (eg. /files/review.txt) and not its default one (i have some text).

Help?

thanks.
VRM is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:13 AM.


Advertisement
Log in to turn off these ads.