You need to call native DOM click()
method in order to fire default clicking anchor behaviour, jQuery specifically excludes it on anchor:
$(document).ready(function() {
$(".button2")[0].click();
});
You need to call native DOM click()
method in order to fire default clicking anchor behaviour, jQuery specifically excludes it on anchor:
$(document).ready(function() {
$(".button2")[0].click();
});