document.getElementsByClassName()
इसका भी प्रयोग ठीक आईडी सेलेक्टर की ही तरह किया जाता है । फर्क केवल इतना है कि ये किसी भी डिवीजन या टैग्ा को उसके क्लास के द्वारा सेलेक्ट करता है ।
उदाहरण -
<body>
<div class="d1">My JavaScript</div>
<script>
document.getElementByClassName("d1").innerHTML = "New JavaScript ";
</script>
</body>
बाकी के सारे प्रयोग भी आईडी सेलेक्टर की ही भाँति होते हैं । आईडी सेलेक्टर के विषय में जानने के लिये पिछली पोस्ट पढें अथवा यहाँ क्लिक करें ।
कोई भी शंका हो तो कृपया टिप्पणी बाक्स में पूँछें ।
Thanks for your detailed help.. I find it very helpful for me...
ReplyDeleteIT Company in Ludhiana | website Designing Company Punjab
thank you, aapne bhut acche se java script ke baare me btaaya hai. Aur agar aap HTML , CSS , Java Script, JQury, PHP ka hindi video tutorials chahte hai to meri site TechnicalProgramming.Com me jaake skihe.
ReplyDeleteI just see the post of the web design in Hindi with learning by post of more ideas.So I have really enjoyed and reading your blogs and these posts.If any way you have be details of the web design details to your feed and I hope you post again soon.
ReplyDeleteWeb Designing Training in Chennai
yeh blog bahut accha hai.apne bilkul accha kham kiya.thank you.
ReplyDeleteweb development company in india
this javascript post is very helpful for me.thank you for your sharing.
ReplyDeleteSchool Wbsite Dsigns