Doesn't find a selector?

  • 0
    There is one section with a button. I needed to move it to the bottom of the page by wrapping it in a container with the seo-fix 'class and I hid the section at the top (stupid, but it was necessary)
    $(document).ready(function() {
            $('.seo-fix').html($('.seo-abs').html());
            $('.seo-abs>.seo-fix').show();
        });

    Everything works, but now the function is not called by clicking on the button, this button is as if it is not in the house, I try to find it using this code (added an additional tag seo-fix, before that there was a selector .show__more button and everything worked) $ (". seo-fix .show__more button"). click (function () {
    Tell me why it doesn't work?
    JavaScript Anonymous, Jun 13, 2019

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!