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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:13:30+00:00 2026-05-24T11:13:30+00:00

Product Name Barcode Quantity 2*WHITER RIN (200 GM) 8901030295232 null 2*WHITER RIN JASMINE FRESH(500

  • 0
    Product Name                            Barcode         Quantity    
    2*WHITER RIN (200 GM)                   8901030295232   null    
    2*WHITER RIN JASMINE FRESH(500 GM)      8901030295201   null
    2*WHITER RIN (200 GM)                   8901030295232   null    
    2*WHITER RIN JASMINE FRESH(500 GM)      8901030295201   null
    2*WHITER RIN (200 GM)                   8901030295232   null    
    2*WHITER RIN JASMINE FRESH(500 GM)      8901030295201   null
    2*WHITER RIN (200 GM)                   8901030295232   null    
    2*WHITER RIN JASMINE FRESH(500 GM)      8901030295201   null
    2*WHITER RIN (200 GM)                   8901030295232   null    
    2*WHITER RIN JASMINE FRESH(500 GM)      8901030295201   null
    2*WHITER RIN (200 GM)                   8901030295232   null    
    2*WHITER RIN JASMINE FRESH(500 GM)      8901030295201   null


                             Delete

This is my table .I need a jquery function to select the particular row in such a way that it should be able to drag or select it and when i click on delete button it should be delete…Can anyone help me out to find a solution in jquery and php

view code

     <?php  $i=0;
    foreach($aaa as $row)
    {$i++;
?>
    <tr>
        <!--    <td  align="left" valign="middle" bgcolor="#FFFFFF" class="rows"><?=$i?></td> -->
            <td  align="left" valign="middle" bgcolor="#FFFFFF" class="rows"><?=$row[0]?></td>
            <td  align="left" valign="middle" bgcolor="#FFFFFF" class="rows"><?=$row[1]?></td>
            <td  align="left" valign="middle" bgcolor="#FFFFFF" class="rows"><?=$row[2]?></td>

        </tr>
  <?php 
      }
      ?>
  • 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-24T11:13:30+00:00Added an answer on May 24, 2026 at 11:13 am

    This is the full code in php. I removed the bgcolor attribute from the <td> because it overrides the background-color from the selected class.

    <head>
    <script src="http://code.jquery.com/jquery-1.6.2.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.js"></script>
    <style>
    .selected {
      background-color:gray !important;
    }
    </style>
    
    </head>
    <?php
    $aaa = array();
    $aaa[] = array(1, "Data One", "Data Two");
    $aaa[] = array(2, "Data Three", "Data Four");
    $aaa[] = array(3, "Data Five", "Data Five");
    $aaa[] = array(4, "Data AAA", "Data BBB");
    $aaa[] = array(5, "Data AAAAAA", "Data SSSSBBB");
    ?>
    
    <table border=1>
    <tr class='record'>
      <td  align="left" valign="middle" bgcolor="#FFFFFF" class="rows">Row</td>
      <td  align="left" valign="middle" bgcolor="#FFFFFF" class="rows">Data 1</td>
      <td  align="left" valign="middle" bgcolor="#FFFFFF" class="rows">Data 2</td>
    </tr>
    
    <?php  $i=0;
      foreach($aaa as $row)
      {$i++;
    ?>
    <tr class='record'>
      <td  align="left" valign="middle" class="rows"><?=$row[0]?></td>
      <td  align="left" valign="middle" class="rows"><?=$row[1]?></td>
      <td  align="left" valign="middle" class="rows"><?=$row[2]?></td>
    </tr>
    <?php } ?>
    </table>
    <input type="button" id="deleterecords" value="Delete">
    
    <script type="text/javascript">
    $(document).ready(function() {
    
      // assign attribute selected to clicked rows
        $("tr[class*='record']").live('click', function() {
           // comment line below if you want multi-selected records,
           $("tr[class*='selected']").removeClass("selected");
           $(this).addClass("selected");
        });
    
        // remove selected records upon clicking delete
        $("input[id='deleterecords']").live('click', function() {
          $("tr[class*='selected']").remove();
        });
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a product table like this: Product name , Affiliate ID , ProductCode
I have this: SELECT Product.ProductID, Product.Name, Product.GroupID, Product.GradeID, AVG(tblReview.Grade) AS Grade FROM Product left
Query: SELECT product_id, name FROM product WHERE barcode in (681027, 8901030349379, 679046, 679047, 679082,
I have the domain class: class Product { String barcode String name String measurement
I am using this LINQ statement to sort a list by product name (ascending
Example: the user fills in everything but the product name. I need to search
I have a table with column for storing product code. | product_id | Product-name
I am looking to implement a similar url as stackoverflow to an eshop: http://wwww.shop.com/products/123123/product-name
I need some help. I am trying to shorten a full product name from
We recently changed the product name on our website from 'bracelets' to 'wristbands' and

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.