Accessing the values of <input> elements defined in HTML #365
-
Is there a way to access the values of form elements of those form elements have been created from HTML code rather than via clog-create-form-element? I tried naively:
but this fails because |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
(clog:value (clog:attach-as-child clog-obj html-id :clog-type 'clog-form-element)) |
Beta Was this translation helpful? Give feedback.
-
Oh wow, okay. I am taking note of this, thanks for the question and the answer kind sirs. |
Beta Was this translation helpful? Give feedback.
-
btw - I would use (clog:text-value x) - this is a generic that pics the best way to get the text based on the element - I always mess up with text, value etc and plug-ins use as well for whatever their method is |
Beta Was this translation helpful? Give feedback.
(clog:value (clog:attach-as-child clog-obj html-id :clog-type 'clog-form-element))