How to get/edit a html tag with pyscript?

How to get/edit a html tag with pyscript?

1 Like

You can grab elements with id using Element

tree = Element("id")

we can grab the child with the class element using select

leaf = tree.select(".leaf")

There is more you can check out the examples in pyscript repo

Thanks! It works!!~~~~