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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:38:25+00:00 2026-06-04T14:38:25+00:00

I am using a program (jAlbum) to create a gallery and in that gallery

  • 0

I am using a program (jAlbum) to create a gallery and in that gallery it has a place for more information about the photo. Currently it just displays Photo Info ^. I have an image I would like to insert into the span that contains the words Photo Info. I would do this in the program but after searching I cannot find that span (I believe it might be generated with javascript but I cannot find the line that generates it). So I figured I can insert this image dynamically using jQuery. I am not sure how to do this as javascript is not my strong suit. Here is how the HTML for the span looks currently:

<span id="lightwindow_info_tab_span" class="up"> Photo Info</span>

Here is how it should look after the image is inserted into the code:

<span id="lightwindow_info_tab_span" class="up"><img class="inline" 
  src="/Images/Icons/info.png" />Photo Info</span>

What is the best way to do this? Remember I am not super strong at javascript (just strong enough to break stuff => ) so please provide an example.

  • 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-06-04T14:38:26+00:00Added an answer on June 4, 2026 at 2:38 pm
    $('#lightwindow_info_tab_span')
                  .prepend('<img class="inline" src="/Images/Icons/info.png" />');
    

    Here I use .prepend(), because according to OP’s post, the image is before the Text.

    You can also use .prependTo()

    $('<img class="inline" src="/Images/Icons/info.png" />')
                  .prependTo('#lightwindow_info_tab_span');
    

    or

    var yourImg = $('<img/>', {
                               "class" :"inline", // or className: "inline"
                                src:"/Images/Icons/info.png"
                             });
    
    $("#lightwindow_info_tab_span").prepend(yourImg);
    

    You could also use:

    $('#lightwindow_info_tab_span').html(function(index, oldHTML) {
        return '<img class="inline" src="/Images/Icons/info.png" />' + oldHTML;
    });
    

    But I would go for options before this

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

Sidebar

Related Questions

I am making my first program using Java3D. I have setup some transformGroups that
I want to create a directory by using program in android sdk. Is it
I program using PhoneGap and learned that cross-platform apps really produces slow applications compared
I wrote a program using Tweepy that I can run on my home computer
I am creating a program using wxpython which entails the need to create many
I have a C++ program using OpenMP, which will run on several machines that
I wrote a program using AutoIT to fetch information from a number of websites
I am using a program that talks to my COMM port, but I have
I remember using a program, some years back, that allowed me to fine-tune my
Using java program how to check that particular project (eq DemoProject ) is available

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.