Open Tab by click on external button / href

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10039344
    inslosk
    Participant

    Hello guys,

    i struggle really long time with quite simple thing: I need open tab when i click on some external button and i have no idea why it isn’t working.

    Exemple page is pasted in field Website URL: (We keep it private)).

    And what i need?
    When i click on button “Pridať hodnotenie x” (near to stars rating) i need to open tab “Recenzie a hodnotenia (5)” bellow the owl carousel.

    Please can you help me with js part or with rewrite my html code, if will be necceserry?

    Really thanks.

    Inslo.sk



    Template Version: 9.1.0
    #10039345
    Support
    Keymaster

    Hello, thanks for your purchase.

    1) Change button to:

    <a href="#" id="gotoReviews" class="btn btn-primary w-100 mt-2 mt-lg-1 previous">
    Pridať hodnotenie x
    </a>

    2) Add this custom js:

    (js/custom.js)

    $('#gotoReviews').on('click', function(e) {
    
    	e.preventDefault();
    
    	$('.nav-tabs a[href="#companyReviews"]').tab('show');
    
    	$('html, body').animate({
    		scrollTop: $("#description").offset().top
    	}, 1000);
    
    });

    Regards.


    #10039348
    inslosk
    Participant

    Great, it works!
    Really thanks for your support.

    Inslo.sk


Viewing 3 posts - 1 through 3 (of 3 total)

This topic is marked as "RESOLVED" and can not rceive new replies.