I have a script that toggles checkbox when page is loaded (by default it's unchecked).
Example:
if (bla bla bla) {
$('#test').trigger('click');
}
It works as expected, but if I go forward to the next page and then go back again (or restore closed tab with that page), this doesn't work: the checkbox remains unchecked. I guess in this case browser doesn't execute js.
Is there any solution to resolve this issue? Thanks.