How to verify an element exists in the DOM using jQuery?

后端 未结 0 1236
终归单人心
终归单人心 2021-02-12 06:20

Typically in JavaScript I do something like the below to verify an element does exist:

if (document.getElementById(\'lblUpdateStatus\')) {
    $(\"#lblUpdateStat         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题