A
A
ART42018-11-19 15:22:50
css
ART4, 2018-11-19 15:22:50

Click button js?

Good afternoon, there is a portfolio, there you need to do it so that it is "PUSHED" on the category All works and show those pictures that you need. It is made so that in the admin panel of All works we upload pictures ourselves.
At the moment, when entering the site, all the pictures are loaded and the category is active :
1698f0c859.png
If I click on the All works button, it will load its pictures:
966e5c9990.png
I did so that the actives class was added, since this is sewn in, with this class it filters. Did not help

$('.row button.btn:nth-child(1)').addClass('actives');

If in another way with click It also adds only the class, but the inclusion itself does not. How to be men, help mi !!!!! This is how everything is pressed:
$('.filter-button:nth-child(1)').click();
$(document).ready(function() {
     $('.filter-button:nth-child(1)').trigger('click');
});

But the loading of the entire portfolio is shown, then the click occurs ..

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question