rabbibotton / clog

CLOG - The Common Lisp Omnificent GUI
Other
1.51k stars 104 forks source link

How to query DOM? #68

Closed bmansurov closed 3 years ago

bmansurov commented 3 years ago

Say, I created a bunch of form elements with create-form-element but didn't keep references. How can I get references to those elements? In jQuery I may do something like $('form').find('input'). Is it possible with CLOG? Thanks.

smvamse commented 3 years ago

No. You can't query using CSS selectors like id, classes, or tag names. You should hold references to all the elements you've created - if you want to use them again. But, you can execute js from lisp side using js-query or js-execute.

bmansurov commented 3 years ago

OK, thanks!