Possible Duplicate:
Finding whether the element exists in whole html page
i would like make somethings:
HTML:
<span id="one">one</span>
<span id="two">two</span>
<span id="three">three</span>
JavaScript:
if (isset($("#one"))){
alert('yes');
}
if (isset($("#two"))){
alert('yes');
}
if (isset($("#three"))){
alert('yes');
}
if (!isset($("#four"))){
alert('no');
}
LIVE:
how can I make that?
This is what you need 🙂