Answer the question
In order to leave comments, you need to log in
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 :
If I click on the All works button, it will load its pictures:
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');
$('.filter-button:nth-child(1)').click();
$(document).ready(function() {
$('.filter-button:nth-child(1)').trigger('click');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question