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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:26:37+00:00 2026-06-04T04:26:37+00:00

<div class=row-container data-i=’+data[i].product_id+’> <div class=row-container data-i=’+data[i].product_id+’> <div class=row-container data-i=’+data[i].product_id+’> <div class=row-container data-i=’+data[i].product_id+’> I want

  • 0
<div class="row-container" data-i="'+data[i].product_id+'">
<div class="row-container" data-i="'+data[i].product_id+'">
<div class="row-container" data-i="'+data[i].product_id+'">
<div class="row-container" data-i="'+data[i].product_id+'">

I want to delete the row-container that contains a particular product_id. I know data(‘i’) retrieves the value, but I dont know where to go from there.

  • 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-04T04:26:38+00:00Added an answer on June 4, 2026 at 4:26 am
    $('.row-container').filter(function(){
        return $(this).data('i') === "product_id"
    }).remove();
    

    .data allows you to set and get other variables beside of strings (functions and objects)

    You can also use this:

    $('.row-container').filter('[data-i="product_id"]').remove();
    

    Or with one selector:

    $('.row-container[data-i="product_id"]').remove();
    

    (Where "product_id" is a placeholder for the real value…)

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

Sidebar

Related Questions

I have the following markup: <div class=event-row-container> <div data-id=1 class=ios-location-name>Location Name</div> <div data-id=1 class=ios-location-detail
My problem is with the below html <div class=editor-container> <div class=editor-row curFocus> <div class=editor-label>
I have set the sessions into rows. <div class=container id=session1> <div class=row session> <div
I want to scale the picture to fit the main div class http://jsfiddle.net/EyW99/ Sorry,
I have a class of div MyClass I want to hook up to two
Each div with the class row is added upon request from the user, to
I am using a jQuery function to clone a DIV that contains a set
I have a vertical image gallery of this sort: <div class=image-container> <div class=nav> <div
I would like to create such Div structure --------div-container------- ----------div-menu---------- --div-title--|--div-submenu- <div class=div-container> <div
I want help in highlighting jqgrid row's data part as and when they are

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.