I'm pooling the following values from some hidden fields.
var hfEntityBool = $(this).find('input[id*="hfEntityBool"]').val();
if (hfEntityBool) {
alert(hfEntityBool);
}
No matter what the value of the hidden field, the alert still displays. Any reason for that?
I've tried to use Boolean(hfEntityBool) method in case the hidden field's still a string, but nothing changed.
Thank for helping