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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:10:08+00:00 2026-06-02T01:10:08+00:00

I have a dynamically generated table of records and for each row, I have

  • 0

I have a dynamically generated table of records and for each row, I have an anchor tag with class name set to ‘hdelete’ to enable me invoke delete method on the particular row’s link that is clicked. I have some code currently that is support to hook up all the anchors with class =’hdelete’

  $("#tbl_srecords").click(function (e) {
       $(e.target).hasClass("hdelete") ? fnDeletehrecord($(e.target)) : null; //Run the delte row function here
    });  

The code above does not seem to work. what it currently does is select just the first occurence of anchor with class=’hdelete’. Anyone with a better idea on how to best implement this?

  • 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-02T01:10:09+00:00Added an answer on June 2, 2026 at 1:10 am

    This will bind a function to all anchor tags with class hdelete and call the fnDeletehrecord function with the element as a jquery object past as a parameter.

       $("#tbl_srecords a.hdelete").click(function(){
           //NOTE: This represents the anchor tag that fired the event
           fnDeletehrecord($(this));
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I add a row to a dynamically-generated table but have the id
I have a html table generated dynamically here is the structure row 1 headings
I have a dynamically generated table of n rows with a checkbox in each
I have a DYNAMICALLY generated Navigation div <div id=WebPartWPQ9 > <table class=xm-ptabarea> <tbody> <tr>
I'm working on a web page where I have a dynamically generated table where
I have a list of dynamically generated div-tags with a class-attribute but no id.
I have the following dynamically generated table on a page along with other tables
Section  TextFrame   Table    Row 1 - N, Dynamically generated using a datatable.  TextFrame   Table
I'm working with iOS 5 and have dynamically generated cells in a table (2
The Scenario I have a table on a web page that is dynamically generated

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.