1

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 :)

Syam Pillai
  • 4,967
  • 2
  • 26
  • 42
Izzy
  • 193
  • 16

0 Answers0