Like
if ($(this).val() == null || $(this).val() == '') {
// do
}
<input value="">
Both gives back false
?
I saw many tutorial have in this to check for sure the field is empty but why need both? Can anyone explain? Why not just with null? Thanks!