SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply use this:
if ($("#one")){ alert('yes'); } if ($("#two")){ alert('yes'); } if ($("#three")){ alert('yes'); } if ($("#four")){ alert('no'); }
Sorry, my mistake, it does not work.