I'm trying to check for two different hash substrings and execute different code depending. This is what I have right now:
Javascript
if(window.location.hash.substring(confirm) {
$('.confirm').click();
}
elseif(window.location.hash.substring(thanks) {
$('.thanks').click();
}
Any idea what I am doing wrong?