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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:59:28+00:00 2026-05-25T01:59:28+00:00

I am using an xml file to pull in data to jqm. I am

  • 0

I am using an xml file to pull in data to jqm. I am appending the first and last name to a listview. (I am working with Datazombies example for the a-z index contact list from the iscroll git hub). How would I specify where to append ie, if the lastname is Adams (or anything that begins with letter A) Adams is appended under the listdivider with ID of A.

Sorry about that thought I included code

                           $.ajax({
    type: "GET",
    url: "Contacts.xml",
    dataType: "xml",
    success: ContactsXml,
    });
       function ContactXml (lxml) {
   $(lxml).find("COMBINED").each(function() {   
     $("#A").append('<li id="item"><a href="#ldetails">'
  + $(this).find("FIRSTNAME").text() + ' '
 + $(this).find("LASTNAME").text() + '</a></li>');
 })} 
 </script>




  <div id="header" data-role="header" data-backbtn="true">
 <a href="#page" data-role="button" data-icon="arrow-l">BACK</a><h1>CONEX</h1></div>
 <div>
      <!-- //left scroll-->
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • I
  • J
  • K
  • L
  • M
  • N
  • O
  • P
  • Q
  • R
  • S
  •      <div id="wrapper" style="overflow-x: hidden; overflow-y: hidden; ">
        <div id="scroller" style="-webkit-transition-property: -webkit-transform; -webkit-transition-
    <ul id="thelist">
      <li class="heading" id="A"><span>A</span></li>
                <li id="item"></li>
      <li class="heading" id="B"><span>B</span></li>
      <li class="heading" id="C">C</li>
      <li class="heading" id="D">D</li>
      <li class="heading" id="E">E</li>
      <li class="heading" id="F">F</li>
    
             </div>
    
    • 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-25T01:59:28+00:00Added an answer on May 25, 2026 at 1:59 am

      Well your question is completely void of any sample markup or script, so here’s a general approach:

      JS:

      var lastname = "Adams";
      var $item = jQuery('<span />').text(lastname);
      $('#directory').find('div.' + lastname.toLowerCase()[0]).append($item);
      

      HTML:

      <div id="directory">
          <div class="a">
          </div>
      </div>
      
      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
        • Report

    Sidebar

    Related Questions

    Using SimpleXML to pull data from a basic XML file. The XML looks something
    I am using XML file for creating Context Menu for my ListView. (Please see
    I have a ListView that is populated using an XML file. However, I want
    I am writing my first windows ce app. I am using an xml file
    How i insert data into xml file using Windows Application in .net?
    I want to pull in data using a XML::XPath parser from a XML DB
    I'm using javascript to pull data returned from an XML document. Inside this XML
    I am using the XmlPullParser to pull data from an XML document. My XML
    I am using a script to pull down some XML data on a authentication
    I am creating an XML file data using XML Serializer methods. The XML file

    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.