how can I access class name without using id
I have following div tag:
<div class="aa bb cc">
</div>
their are three classes if i access class then which one will be access.
how can I access class name without using id
I have following div tag:
<div class="aa bb cc">
</div>
their are three classes if i access class then which one will be access.
Your question is not clear( or I might not understood it correctly)
their are three classes if i access class then which one will be access.
What do you mean by "if I access class then which one will be accessed"?
Normally we are accessing the element using a class
var divElement1 = $('.aa')
or
var divElement2 = $('.bb')
or
var divElement3 = $('.cc')
All 3 variables (divElement1 ,divElement2 and divElement3) are going to be the same div
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.