Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1146756
    Slavko G
    Participant

    I had the following jQuery code for selecting tab grammatically. Doesn’t work any more and i can’t find reason for that.

    jQuery(function() {
    var days_array = [“Nedelja”,”Ponedeljek”,”Torek”,”Sreda”,”Četrtek”,”Petek”,”Sobota”];
    var day_of_week = days_array[(new Date()).getDay()];
    jQuery(“ul.x-nav-tabs li.x-nav-tabs-item a:contains(‘”+day_of_week+”‘)”).click();
    })

    Regards,
    Maks

    #1146927
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1147842
    Slavko G
    Participant

    I already solved the problem.
    Thank you for your reply. Great theme.

    #1147849
    Rad
    Moderator

    You’re so much welcome and glad to hear that!

  • <script> jQuery(function($){ $("#no-reply-1146756 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>