Skip to content

Instantly share code, notes, and snippets.

@diggeddy
Created January 2, 2018 00:08
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save diggeddy/7298842ae9fe93ef90483439bcb49b1a to your computer and use it in GitHub Desktop.
Save diggeddy/7298842ae9fe93ef90483439bcb49b1a to your computer and use it in GitHub Desktop.
Make a Elementor form radio button checked by default
/*---- JavaScript Check radio button ------*/
/*---- change ElementID to match the ------*/
<script type="text/javascript">
window.onload = function check() {
document.getElementById("form-field-LABEL-#").checked = true;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment