更新时间:2023-02-23 20:15:21
var isValid = div.children('#responseErrorMessage').html();
if (isValid == null) { }
Will always result in false. If the element exists, that is.
If an element is empty, the return will be an empty string. Try out if (isValid == "") { }
instead.