SyntaxFix
Write A Post
Hire A Developer
Questions
To check wether html block is existing or not, I'm using this code:
if (typeof($('selector').html()) != 'undefined') { // $('selector') is existing // your code here }