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 7620493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:57:02+00:00 2026-05-31T03:57:02+00:00

I am not really good in javascript so forgive me if I am confusing

  • 0

I am not really good in javascript so forgive me if I am confusing Object between other terms. The Object here is the HTML element. I don’t know why my it is rendered as [object HTMLImageElement] when placed in between strings. Here’s my code:

this.elem.find('img').map(function(index, elem){
    markup += '<li>' + elem + '</li>';
});

It looks for images in a given container and wraps it with <li>. What should I do so that the actual image markup is rendered instead?

  • 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-31T03:57:04+00:00Added an answer on May 31, 2026 at 3:57 am

    elem in your code points to the object that is of type ImageElement.

    To access the value of the properties/attributes this element has you need to access the properties/attributes.

    let say if it has a property named ‘value’ acess using elem.value

    To ger the image markup i think elem.innerHTML should work. You can find better alternative in intellisense if this doesnt work.

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not really good at JavaScript so I'm here asking. Below is a sample
I'm not really good at Javascript/jQuery yet, so I need some help. I have
I'm using NivoSlider and I'm not really good on using javascript so I was
First: I'm not really good at javascript and I want to use jQuery functions.
I'm really not that good at Javascript and that, so I need another bit
NHibernate is not really a good fit for our environment due to all the
Where can I find good agile classes for developers? Not really talking about scrum
Not really too sure how to word this question, therefore if you don't particularly
Its not really a subtraction I'm looking for. And I know its not a
I'm not that good at javascript (yet), so I need some help, with an

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.