View Full Version : code for selecting a tab and displaying specific content (not default content).

07-19-2010, 05:18 PM
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).