且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery获取div内容

更新时间: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.

相关阅读

技术问答最新文章