The error: Uncaught TypeError: Cannot read property 'indexOf' of undefined
Here is the code that I have:
var exitBtn = document.getElementById("button");
function zipExitHandler() {
var zipCode = document.getElementById("zipcode").value;
Enabler.exitQueryString("http://www.purchasetickets.com/?", "zipcode=" + zipCode);
}
exitBtn.addEventListener('click', zipExitHandler, false);
This is most likely an issue with trying to access the `exitQueryString` method on Enabler class.. Any ideas as to why I would be getting an indexOf undefined error?