[Solved] how to simulate a click on a href with jQuery [closed]


why not just display the tab you want rather than ‘click’ it? Is there extra code you are trying to get run at the same time?

if($("#fonction").text() == "user") { // Affichage de l'onglet Utilisateurs - this test works !
    //hide current tab
    $('#tabs li a').filter('.inactive').addClass('inactive');
    $('.container:visible').hide();
    //show new tab
    $('#tabs li a#TA').removeClass('inactive');
    $('.container#TA').show();
} 

4

solved how to simulate a click on a href with jQuery [closed]