How to get dropdown open on page load automatically

After trying so many solutions this one worked! I added a custom ID of #dropdown-toggle-1 to the first dropdown and just copy pasted your script and it worked perfectly without any bugs! Thank you so much man