question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove doesn't work on dinamically added rows with append()

See original GitHub issue

Steps to reproduce:

  1. Create a table with some hardcoded data on it (just for test purposes. The behavior is still present even when the table has no rows)
  2. Append a row to the table using the append method.
  3. Try to delete your newly-appended row using the remove method.

Expected behavior: The row is removed. Actual behavior: Nothing happens.

Note that remove does work when trying to remove rows that were already present in the table.

Test case: https://jsbin.com/hopudujuzu/edit?html,js,output

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

1reaction
tperizcommented, Jun 7, 2018

Ok that worked thanks, but why doesn’t it work with remove?

0reactions
UtechtDustincommented, Apr 22, 2019

Works in the latest version: http://jsfiddle.net/qurtg9Ln/3/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing dynamically added row from a table using jquery
The problem is that this row of elements is dynamically inserted and only after the DOM had everything loaded and was ready. In...
Read more >
How to dynamically add and remove table rows with javascript
In this one, we add remove table rows using a form and javascript. The videos are focused on javascript so I don't go...
Read more >
How to Dynamically Add/Remove Table Rows using jQuery
In this article, we will learn how to dynamically add/remove rows from an ... use the .append() method of jQuery to add a...
Read more >
Dynamically Add and Remove rows in a Table Using jquery
in this jQuery tutorial, We'll let you know How to dynamically adding and removing rows in a table using jQuery. Earlier, we managed...
Read more >
Dynamically Add/Remove rows in HTML table using ...
For adding dynamic row in table, we have used insertRow() method. This method will insert a row at position specified by the index...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found