JavaScript how to find image inside a div using jquery find image inside another image python,find image inside another

I am working on an html page where i have div element and also a inner div element. In the inner div element there is a image element. The main and inner div are 2 in numbers.

<div class="owl-stage-outer">

<div class="owl-item" style="width: 1903px;"><div class="header-single-slider">
                    <figure>
                        <img src="assets/img/sliders/slider01.jpg" alt="">
                        <figcaption>
                            <div class="content">
                                <div class="container inner-content text-left">
                                    <h1 style="display: block;" class="fadeInUp animated">We Build Your<br><span>Business</span> IDEA</h1>
                                    <p style="display: block;" class="fadeInDown animated">There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.</p>
                                    <a target='_blank' href="#" class="boxed-btn fadeInDown animated" style="display: inline-block;">Read More <i class="fas fa-arrow-right"></i></a>
                                </div>
                            </div>
                        </figcaption>
                    </figure>
                </div></div>

 <div class="owl-item active" style="width: 1903px;"><div class="header-single-slider">
                    <figure>
                        <img src="assets/img/sliders/slider02.jpg" alt="">
                        <figcaption>
                            <div class="content">
                                <div class="container inner-content text-left">
                                    <h1 style="display: block;" class="fadeInUp animated">We Build Your<br><span>Business</span> IDEA</h1>
                                    <p style="display: block;" class="fadeInDown animated">There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.</p>
                                    <a target='_blank' href="#" class="boxed-btn fadeInDown animated" style="display: inline-block;">Read More <i class="fas fa-arrow-right"></i></a>
                                </div>
                            </div>
                        </figcaption>
                    </figure>
                </div></div>
</div>

Here the main div whose class is 'owl-item' is used 2 times and the inner div whose class is 'header-single-slider' is also used 2 times. When the program runs The main div whose class is 'owl-item', its class changes to 'owl-item acitve' means this class is active now and second div class remain as 'owl-item'. after some seconds the second div will becomes active and its class becomes'owl-item active' and first will remain inactive and its class will be 'owl-item'

I want to find the image src of that div whose class is 'owl-item active'. For this i used the following query:

alert($('.owl-item active').children('div').children("img").attr('src'));

But it is showing alert message as 'Undefined'. How to solve this?

Answer:1

I have this code: v.d = new Date().toLocaleTimeString(); it yields something like this: 20:11:40 So this is the time of day to the second, without milliseconds. My question is: is there a built in ...

I have this code: v.d = new Date().toLocaleTimeString(); it yields something like this: 20:11:40 So this is the time of day to the second, without milliseconds. My question is: is there a built in ...

  1. millis using arduino uno

I am working in node.js web application with express frame work and I need to get result form mysql database. I want to get result in synchronous. It is possible. Please suggest. For Example: result =...

I am working in node.js web application with express frame work and I need to get result form mysql database. I want to get result in synchronous. It is possible. Please suggest. For Example: result =...

  1. synchronous loop nodejs
  2. synchronous foreach loop node js
  3. synchronous while loop node js
  4. node synchronous loop
  5. make for loop synchronous node js

I was debugging a strange JavaScript issue, and noticed what I think might be a browser bug in IE11. I'm posting here on StackOverflow as a sanity-check -- and maybe to make sure that someone else ...

I was debugging a strange JavaScript issue, and noticed what I think might be a browser bug in IE11. I'm posting here on StackOverflow as a sanity-check -- and maybe to make sure that someone else ...

I do not understand the error that I am seeing, nor what I should change in my ESLint configurations to fix it, after digging around for a while. I have a snippet of JS code using ECMA Version 6 (ES6)...

I do not understand the error that I am seeing, nor what I should change in my ESLint configurations to fix it, after digging around for a while. I have a snippet of JS code using ECMA Version 6 (ES6)...

  1. donald trump
  2. donovan mitchell
  3. donald trump twitter
  4. don toliver
  5. donuts
  6. donald trump age
  7. donatos
  8. donald glover
  9. donald trump net worth
  10. donuts near me
  11. donald trump jr
  12. donepezil
  13. don johnson
  14. donald trump speech today
  15. donna shalala
  16. donna summer
  17. donald cerrone
  18. don julio
  19. donnie darko
  20. don quixote