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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:47:25+00:00 2026-06-04T12:47:25+00:00

I have a autocomplete box in my aspx page, and from the list if

  • 0

I have a autocomplete box in my aspx page, and from the list if I select any data, am binding the values into a div like this,

 var data = "<div class='close'><table><tr><td rowspan='4' width='50px;'>
      <img src='" + studentItem.Photo + "' Width='48' Height='48'  /></td><td>" 
      + studentItem.Name + " ( <span class='stuId'>" + studentItem.StudentId 
      + "</span> )</td><td align='right' ><div class='close16'/></td></tr>
      <tr><td><table cellpadding='0' cellspacing='0'><tr><td>" 
      + studentItem.Email + "</td><td>&nbsp;|&nbsp;</td><td>" 
      + studentItem.Mobile + "</td></tr></table></td></tr></table></td></tr>
      </table></div>";

and am binding the datas into a div like

$("#students").append(data);

and I can delete particula data like

        $(document).on('click', '.close16', function () {
            $(this).parentsUntil('#students').remove();
        });

here what I want to do is if I click delete(close16), I need to get the corresponding studentId(which is in the stuId ie. span)

I tried like alert($("stuId").text()); within the click event of close16, but its not showing anything, can anyone help me here, thanks in advance

  • 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-04T12:47:27+00:00Added an answer on June 4, 2026 at 12:47 pm
    $(document).on('click', '.close16', function () {
        alert($(this).closest('table').find('.stuId').text()); /* span text */
        ...
        $(this).parentsUntil('#students').remove();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are developing an ASPX (.NET 2.0) page that includes a select list with
I have a jquery autocomplete text box at the top of a page. Typically,
I have an autocomplete box which I would like to be able to close
In a text box, as you type, we have autocomplete that generates a list
I have an autocomplete combobox that creates a new select box based upon the
I have a very large list of terms for use in an autocomplete box.
using jquery I have a autocomplete text box like the combobox example on the
I have an autocomplete text box that users can type an item code into
Is there anyway to have the autocomplete for a combo box to start from
I have autocomplete text box, that is JQuery based. when i record the macro,

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.