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

  • Home
  • SEARCH
  • 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 6054407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:08:57+00:00 2026-05-23T08:08:57+00:00

Currently I am using jquery templating with some json data, I have a couple

  • 0

Currently I am using jquery templating with some json data, I have a couple images that I am getting and I would like to drop the last image that I am getting from my json data. Right now I have this coded ( this only a snippet of the spot I am having the problem at):

    <div class="altViews">
    <ul class="clearfix">
    {{each(i,addImage) AdditionalImages}}
        <li class="altImage">
            <img src="http://images.url.com/images/products/${addImage}" alt="${Name}" id="${addImage}"/>
        </li>
        {{/each}}
    </ul>
</div>

SO the main help I need is to be able to drop the last li, I just dont know how to use my index to do that.

  • 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-23T08:08:58+00:00Added an answer on May 23, 2026 at 8:08 am

    use an {{if}} statement:

    <div class="altViews">
        <ul class="clearfix">
        {{each(i,addImage) AdditionalImages}}
            {{if i < AdditionalImages.length - 2}}
            <li class="altImage">
                <img src="http://images.url.com/images/products/${addImage}" alt="${Name}" id="${addImage}"/>
            </li>
            {{/if}}
        {{/each}}
        </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using jQuery and would like some help on iterating through all checked
I am currently using jquery ui datepicker for forms that have date inputs. The
I'm currently using jQuery to return some JSON results. Once these results are returned,
I am developing a web app that accesses some external JSON data. I'm currently
I am currently using JQuery Ajax to retrieve and display some data as follows.
I'm using the JQuery AJAX function to deliver data to a PHP doc. Currently,
I am currently using jQuery Mobile on a project and have run into a
I am currently using jQuery to write an online application, that started off with
I am currently using jQuery cycle to display featured projects. I currently have the
I'm currently using jquery's ajax feature or whatever they call it. To load data

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.