Just want to call a login function once after someone clicks a video thumbnail. This is what I have:
if (videoCode == "BQXTCCyJsKE" && $secCode == null){
var $secCode = "1";
$(document).ready(function () {
login()
});
}
You would think $secCode would equal "1" later on, but NO. It becomes null again and the login function is called again which gives an error. I've tried making global variables but it doesn't work. Anyone have any ideas?