SyntaxFix
Write A Post
Hire A Developer
Questions
I do below and check if id exist and execute function if exist.
id
var divIDVar = $('#divID').length; if (divIDVar === 0){ console.log('No DIV Exist'); } else{ FNCsomefunction(); }