Is it possible to reference the status of a checkbox in a standard text (rich text) note with javascript? #4480
-
Apologies if this is a bit of a basic question, but I was just wondering if this was possible and how to go about doing it if so. I would preferably like to make a checkbox list within a standard text note and then generate a new note based on the status of those checkboxes that pulls from the text next to it. The general idea that I have is to make an inventory of food I have in so I can then generate a shopping list based on what I've run out of. So for example:
Would generate a new note 'shopping list' after a setting up a button to press:
Just wanted to check if this is possible. If not I suppose I could try and do it with HTML or attributes but I think this method would be preferable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
With plain JS you can check for the
checked
DOM attribute:Or just checked the state directly: