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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:29:38+00:00 2026-05-15T12:29:38+00:00

Result ( data ) looks like this: <tr> <td> Something… </td> </tr> <div id=paging>1,

  • 0

Result (data) looks like this:

<tr>
   <td>
      Something...
   </td>
</tr>

<div id="paging">1, 2, 3... </div>

This is ajax

...
dataType: "html",
success: function(data) {
    parse data...    
    $('#myDiv1').html(data1);
    $('#myDiv2').html(data2);
}
...

Is it possible to parse data so that data1 contains table row(s) and data2 contains div#paging content?

Thanks in advance,

Ilija

  • 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-15T12:29:39+00:00Added an answer on May 15, 2026 at 12:29 pm

    try..

    var data1 = $(data).find('tr');
    var data2 = $(data).find('div#paging');
    

    edit:

    as Guffa, mentioned in below comments, you cannot parse it if the html is broken in structure… but I suspected you got more than that codes… anyway, here’s a demo

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

Sidebar

Related Questions

$(.delete).click( function() { var thesender = this; $(thesender).text(Del...); $.getJSON(ajax.php, {}, function(data) { if (data[result])
I am attempting to create a type synonym that looks something like this: data
My login form in the HTML looks like this: <div id=login> <label for=email_B>Email Address</label>
I have a data-structure (in plist) that looks something like this: What i have
I am retrieving some data from the server which looks something like this: 1:some
Given a data set like this; +-----+---------------------+--------+ | id | date | result |
I have a setup that looks like this. class Checker { // member data
I am calling a REST webservice. The response looks something like this: <?xml version=\1.0\
My autocomplete results for each item looks something like this: <h3>Celebrity Sweepstakes</h3><p>0 episodes</p> But
I have to have a result which looks like this: ({1: 'string', 2: 'anotherstring',

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.