In my code, the following condition returns true
value:
($("#planSelected").val() == "PremiumPrepurchase")
But when I'm saving that value to a variable say 'isPremiumPrepurchase', the value of 'isPremiumPrepurchase' is getting false, Why this happening?
var isPremiumPrepurchase = ($("#planSelected").val() == "PremiumPrepurchase");
Thank you :)