I have a Home page in which when I click on a menu item, redirect the other page and a click
in a certain service in an "accordion / accordion" menu.
I have something like this:
var index = $(this).parent().attr('index');
$(window.document.location).attr('href', 'index.php/servicos');
setTimeout(function(){
$('.'+ index +' img').click()
}, 1000);
Do not make cute here rs.
But that is not working. I gave alert()
and by what I think it gives the command within setTimeout
BEFORE going to the other page.