I have a project here with a problem, I'm close to solving but I need a hand from you!
At Home, we have a button called "Toppings" that when clicked should be taken to the Projects page.
On this page, we have a Portfolio-Filter Plugin, where all properties are shown, and if the user clicks on some category, eg 1 dorm, 2 dormitories, only real estate of this type are on the screen with an effect fading the others in the form of fadeToggle ().
But the url is not changed when clicking on these filters, usually a #Category appears in the url, but not in this case.
I've done the following:
- In the Home Covers button, I call the URL: link .com? br? type = covers
- Then jQuery searches the url for the string "type = covers", this is already ok.
- I now need to force a click (do not know if it's possible) without the user clicking on the Hedges filter when this happens.
Tips ??
Follow the code below:
$(document).ready(function () {
if(window.location.href.indexOf("?tipo=coberturas") > -1) {
alert("Opa, encontrou.");
var filtroCoberturas = $('li a[data-filter*="cobertura"]');
//Agora aqui preciso fazer a LI selecionada ser clicada automáticamente
}
});