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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:46:52+00:00 2026-05-13T19:46:52+00:00

I created a simple Import script that takes a CSV processes it in PHP

  • 0

I created a simple Import script that takes a CSV processes it in PHP and returns a HTML table (essentially a user list).

This is the HTML output:

<tr id="user:1">
  <td id="first:1">Jane</td>
  <td id="last:1">Doe</td>
</tr>

<tr id="user:2">
  <td id="first:2">John</td>
  <td id="last:2">Doe</td>
</tr>

This HTML data is initially returned as a response variable (data) of my upload function:

$.post('upload.php', {
  first: $('#first').val(),
  last: $('#last').val(),
  function(data) {
    $("#plist", top.document).html(data);
  }
);

You will notice that I then place the data into a div called “#plist” which resides in the top frame. Basically I’m doing the same kind of trickery gmail does when uploading attachments by using an iframe. Then I’m returning the data into a div on the top frame.

Everything works great.

My only problem is I’m unable to use JQuery’s selectors on this dynamically created data. For instance If I wanted to retrieve the first users name I tried to do this:

var first = $("#first:1").html();
alert(first);

This does not work as I would expect it. I have used JQuery’s live binding before and I have this contained within that logic and it still doesn’t work.

$(".some_btn").live("click", function(){
  var first = $("#first:1").html();
  alert(first);
});

Any ideas?

  • 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-13T19:46:53+00:00Added an answer on May 13, 2026 at 7:46 pm

    The problem is that : is a special character as far as jQuery is concerned. It is used for various pseudo-elements (eg $("div:hidden").show()). You need to escape it:

    $("#first\\:1")...
    

    My suggestion would be to use a different character like _ or -.

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

Sidebar

Related Questions

I've created this simple GUI: from tkinter import * root = Tk() def grabText(event):
How to manually create Friendly URLs? (PHP) So I have created simple php file
I created a simple Sudoku application, where each 3x3 squares is a user control,
I'm trying to create a simple form that adds a user new User(). But
I can't make py2exe to pack correctly even a simple script that uses win32file
I'm trying to create a simple python script and import a couple of custom
I just create a simple UITableView in the UIViewController . .h #import <UIKit/UIKit.h> @interface
Hello I`ve created simple WFC DataService and connected entit model with my database. This
Could someone help me on this, I have created simple web services using axis2
I am new to Repository concept and get some questions. I have created simple

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.