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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:28:30+00:00 2026-06-01T12:28:30+00:00

I need to take the data I get from an element id pulled from

  • 0

I need to take the data I get from an element id pulled from dropped items (using jqueryui draggables/droppables/sortables) to be sent via a form (to be emailed) along with data here:

      function submitForm() {
$.ajax({type:'POST',
       url: 'send_tile.php',
       data:$('#tiles_collected').serialize(), 
       success: function(response) {
    $('#tiles_collected').find('.form_result').html(response);
}});

return false;
   }

the function for getting the ids is this (not sure if it works right yet either):

  function getSku() {
var myIds = new array();
        $("#collection li").each(function(index, element){
              alert($(this).attr('id'));
           myIds.push(element.id);

            });

and the form looks like this:

     <form id="tiles_collected" name='tiles_collected' method="post" onsubmit="return submitForm();">
      Email:<input name='email' id='email' type='text'/><br />
      Name:<input name='name' id='name' type='text' /><br />
       Zip code: <input name='zip' id='zip' type='text' /><br />
       <input type='hidden' id='sku' />
       <input type="submit" name="submit" value="Email collection to yourself and us" /><br/>
       <div class="form_result"></div>
       </form>

Can anyone give me an assist?

  • 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-01T12:28:32+00:00Added an answer on June 1, 2026 at 12:28 pm

    To just add the ID’s to the data sent to the server you can use extend or just add them in the Ajax function.

    extend:

    function submitForm() {
        var MyData = $('#tiles_collected').serialize();
        $.extend(MyData, {IDs: myIds});  //myIds will have to be accessable, right now it's a local variable in your getSku() function
    
        $.ajax({type:'POST',
           url: 'send_tile.php',
           data: MyData, 
           success: function(response) {
                $('#tiles_collected').find('.form_result').html(response);
           }
        });
        return false;
    }
    

    or just add them directly:

    function getSku() {
        var myIds = new array();
        $("#collection li").each(function(index, element){
            myIds.push(element.id);
        });
        return myIds;
    }
    
    var IDs = getSku();
    
    $.ajax({type:'POST',
        url: 'send_tile.php',
        data: {data : $('#tiles_collected').serialize(), ids : IDs},
        success: function(response) {
            $('#tiles_collected').find('.form_result').html(response);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to take data from external file and format it, the problem is,
Let's say I have some data that I need to get from the server
Using a paged result of some query i need to get from what page
I need to take GET fields from my asp.net web app (first name and
I need to create WebMethod that will get some data from db and return
I need to pull some data from the API. It returns the GET in
i need to take some row. They came from sql TARIH (sql column) is
I need to take rows from two separate tables, and arrange them in descending
In my Android application I need to read a large amount of data from
I have LinkedHashMap returning from DB. From this map I need to get the

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.