Last active
May 29, 2019 21:26
-
-
Save staycreativedesign/72a4185cc0ed9239de298fc788dbded9 to your computer and use it in GitHub Desktop.
Trying to get value of post_of_type on load
This file contains hidden or 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
$("#post_of_type").on('change', foo); | |
function foo(){ | |
switch($("#post_of_type").val()) { | |
case "documents": | |
console.log("foo") | |
break; | |
default: | |
console.log("bar") | |
} | |
} | |
foo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment