Hello, I have the following code:
alert($.cookies.get("WCA.Player")); var cookie = $.cookies.get("WCA.Player"); if (cookie == null || cookie == 'Play') { $("#JPlayer").play(); } The alert gives me the correct value which is null or 'Play' but the if is not working correctly. Am I doing something wrong? Thanks, Miguel