Timeline for How to select element by class when multiple elements match?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 4, 2019 at 12:50 | comment | added | Michael Durrant | Are you getting a multiple matches error and assuming it is finding div's as well as span's perhaps ? If so it will be because there are multiple div's with that class (class is a clue too as classes are applied to multiple elements where as id's are unique). | |
May 4, 2019 at 12:49 | comment | added | Michael Durrant | Yes my code here select only div's as shown What do you not understand about it? | |
May 4, 2019 at 12:46 | comment | added | Technical Gyan | i want to select only div tag through class name but i run my API its scraps both data because class name is same in both tag then how to select only div class name. <div class="dept-time">11:10</div> not <span class="dept-time">11:10</span> | |
May 4, 2019 at 12:40 | history | edited | Michael Durrant | CC BY-SA 4.0 |
added 158 characters in body
|
May 4, 2019 at 12:35 | history | edited | Michael Durrant | CC BY-SA 4.0 |
added 158 characters in body
|
May 4, 2019 at 12:24 | history | answered | Michael Durrant | CC BY-SA 4.0 |