-
-
Save nocodesupplyco/71ff7bf67d6f634fb164da537d727472 to your computer and use it in GitHub Desktop.
Click Something Based on ID in URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use or update each instance of "example" for your use case of the URL parameter and ID to target | |
$(function() { | |
if(window.location.hash == "#example") { | |
document.getElementById("example").click(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment