ComeRun
ComeRun

Reputation: 921

jquery 1.9 load to a div then click on a tab

I have got the following working just fine on jquery 1.7 but since I upgraded to 1.9 its not working as expected (I also dont get any error on the error console).

$(document).ready(function(){
    $('a[href*="#myTab"]')
        .filter(function(index) { 
            return $(this).text() === "Dashboards"; 
        })
        .click(function() {
            $("#content").load('dashboards.jsp', function() {
        });
    });
});

what it does is, loads the page into the content div when click on a tab called dashboard.

has any part of what I used has been depreciated or something?

Upvotes: 0

Views: 102

Answers (1)

basarat
basarat

Reputation: 276085

None of the code you have has been depreciated. You could try using jquery migrate. But that will fix errors elsewhere in your code, not in this particular segment.

However fixing those other errors might fix whatever is wrong here.

Upvotes: 1

Related Questions