adding data-target to a button inside of a slide

Hello, I am trying to link a button to a modal and I need it to have a [data-target=""] attribute but I can't get it to work. Could you help me out with this?

I tried using this code here:
jQuery(document).ready(function() {
   jQuery('.ttp-mask-wrap').find('a').attr('data-toggle', 'modal');
   jQuery('.ttp-mask-wrap').find('a').attr('data-target', '#myModal2');
});

fyi, a similar code worked for the main nav, 'request service' button

site 

Comments

  • Hi,

    What you ask for is file customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact your web developer. Item Policy says:
    Item support does not include services to modify or extend the item beyond the original features, style, and functionality described on the item page. For customization services that will help you tailor the item to your specific requirements, we recommend contacting the author to see if they privately offer paid customisation services or checking out the great service providers on Envato Studio


    thanks
Sign In or Register to comment.