remove from children of `#id`?

This issue has been tracked since 2022-08-17.

Great work here, this + HTMX is awesome.

I haven't been able to find a way to remove all child divs of a certain element with an ID.

then remove allChildren of #the-id
then remove allChildren from #the-id
then remove innerHTML from #the-id

All these return an is null error in the console.


This is doing nothing either:

then remove <div#id.some-class-added-just-to-remove/>
SHxKM wrote this answer on 2022-08-18

Sucking at CSS, UI is exactly why I'm using these libraries, the correct selector is of course:

<div#id .some-class-added-just-to-remove/>

I wonder if there's a more hyperscript way to do it though? Anyway, this is not an issue.

dz4k wrote this answer on 2022-08-18

You could write .some-class-added-just-to-remove in #id, if you so desire

More Details About Repo
Owner Name bigskysoftware
Repo Name _hyperscript
Full Name bigskysoftware/_hyperscript
Language JavaScript
Created Date 2020-05-27
Updated Date 2022-11-25
Star Count 1265
Watcher Count 18
Fork Count 75
Issue Count 86


Issue Title Created Date Updated Date