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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:31:32+00:00 2026-06-13T11:31:32+00:00

How do I do this in dart? After grabbing a tbody element, I would

  • 0

How do I do this in dart?

After grabbing a tbody element, I would like to do call empty() on it, but that does not seem to exist:

var el = query('#search_results_tbody');
el.empty();

I tried this, but it is acting weird, I dont even understand what the result is!

el.nodes.forEach((c) {c.remove();});
  • 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-13T11:31:33+00:00Added an answer on June 13, 2026 at 11:31 am

    I believe the fastest and easiest way to do this at the moment is simply set the contents to empty:

    var el = query('#search_results_tbody');
    el.innerHtml = '';
    

    innerHtml is pretty optimized these days on the browser, it should be quick.

    Alternatively, you could also do this:

    el.children.clear();
    

    Where children is a List<Element> with a clear() method to clear the list.

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

Sidebar

Related Questions

I would want to be able to do something like this with a Dart
My understanding of Dart leads me to believe that this 'cast' should not affect
This might seem like a stupid question I admit. But I'm in a small
this is my first question in here, and I would like to ask if
I understand that Dart has just been released, and while it's not entirely stable
I've been trying to use Dart's noSuchMethod() , but this code noSuchMethod(InvocationMirror invocation) {
this seems to not be possible with dart? i.e. to have a class method
I'm trying out the Dart Language and HTML5 Canvas element, but I'm stuck with
I'm aware that I can't import it like other core libraries: #import('dart:unittest'); I saw
Does Dart support the concept of variable functions/methods? So to call a method by

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.