Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6870557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:41:53+00:00 2026-05-27T03:41:53+00:00

I am trying to code a jquery slider. I have a html code which

  • 0

I am trying to code a jquery slider. I have a html code which looks like this. I had earlier posted a simpler version of code so that the question doesnt seem too long. Sorry for the inconvenience caused. Here is the actual code

<div class="allItems">  
    <div class="echItm">
        <h4>asdddddddd </h4>
        <span class="mImg">/web/images/promotionSlideShowImages/kc1g358wvv.jpg</span>
         <span class="tImg">/web/images/promotionSlideShowThumbnailsNew/kc1g358wvv.gif</span>
    </div>

     <div class="echItm">
        <h4>dddddddddd </h4>
        <span class="mImg">/web/images/promotionSlideShowImages/ptvrbfpnkd.jpg</span>
         <span class="tImg">/web/images/promotionSlideShowThumbnailsNew/ptvrbfpnkd.gif</span>
    </div>
 </div> 

When I try to do a find using

    var imagesArray=$('.allItems').find('.echItm');
    for(var i=0;i<imagesArray.length;i++){
    var thisElement=imagesArray[i];
    alert($(thisElement).html());
}

IE returns null, whereas firefox, chrome return the required html. Can someone guide me what am I doing wrong? I’m using Jquery 1.4.2 and testing this on IE8. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:41:53+00:00Added an answer on May 27, 2026 at 3:41 am

    testElement is already a jQuery object so you don’t have to wrap it in $(). Try this

    var testElement=$('.echItm').find('h4');
    alert(testElement.html());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some jquery code which I am trying to translate to YUI. I
I am trying to create my own HTML element that looks like this: The
I'm trying to call a function that contains jQuery code. I want this function
Trying to get comfortable with jQuery and I have encountered some sample code that
I am trying to get the code of an event using the event.which jQuery
I am having an issue converting type. I was trying code like this (minimal,
I'm trying to show the current value of a jquery slider, this works, but
I am trying to create a html page with persistent footers using jquery mobile.This
Hello Guys! I have been trying to create a cool Image Slider using Jquery!
I'm trying to make a modal dialog in the least amount of jQuery code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.