SyntaxFix
Write A Post
Hire A Developer
Questions
The check can be done like this:
if (!!inp.val()) { }
and even shorter:
if (inp.val()) { }