Here is my code:
<script>
document.getElementById("test").click();
</script>
Is there a reason why it doesn't trigger the click();
on page load but when I do it in the console for on Firefox, it works. Why is that and how do I fix it?
EDIT: I have also tried this:
<script>
$(document).ready(function() {
$('#test').trigger('click');
});
</script>
still doesn't work...