SyntaxFix
Write A Post
Hire A Developer
Questions
See this answer. val() is comparing a string, not a numeric value.