SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming you are trying to find if a div exists
$('div').length ? alert('div found') : alert('Div not found')