I have an iframe and inside this there is a class called service-row and inside this div there is another class named service-cell
I want to get the data from that class how to do that. And there are 40 items with same name class how to get that data.
example
HTML page
<iframe id="iframe1">
<div class="servicesTab">
<div class="service-row">
<div class="service-cell">
Obstetrics(this data)
</div>
</div>
</div>
</iframe>
If you need data of specific cell then you can use the following code:
$("#iframe1 .service-cell:eq(0)").text()
else you can access all the cells using below code and then, iterate using for loop :
$("#iframe1 .service-cell")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.