I currently have a jQuery function that I need to know if there is any GET data present. I do not need the data from the querystring, just whether there is any or not to run one of two functions.
Equivalent PHP:
if (isset($_GET['datastring'])) {
// Run this code
} else {
// Else run this code
}
You would have to try something similar to this: (you don’t have to use the variables, but you can if you want)
If you would like to use the variables: