संभव डुप्लिकेट:जारी?
एचटीएमएल:
<span id="one">one</span> <span id="two">two</span> <span id="three">three</span>
JavaScrip
Finding whether the element exists in whole html page
मैं somethings बनाने चाहते हैं टी:
if (isset($("#one"))){
alert('yes');
}
if (isset($("#two"))){
alert('yes');
}
if (isset($("#three"))){
alert('yes');
}
if (!isset($("#four"))){
alert('no');
}
LIVE:
कैसे मुझे लगता है कि कर सकते हैं?
क्या करना चाहिए इन काल में सेट हो? –
'जारी करने' का अर्थ क्या है? 'Span' में कुछ सामग्री है? वह मौजूद है? –