From a7f91232f3ed9adcb8a4599346d07feecf8b09ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 19 Feb 2020 11:36:16 +0100 Subject: [PATCH] documentation update --- src/commands.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/commands.hxx b/src/commands.hxx index 02c3147..56d7881 100644 --- a/src/commands.hxx +++ b/src/commands.hxx @@ -1915,7 +1915,15 @@ class Set: public Command { " output, such as , which returns the result of JavaScript or" " , which returns the output of the executed command, or" " , which returns the result of the last command." - " All variables are global with regard to functions."; + " All variables are global with regard to functions.\n\n" + "To set a variable to the value of an input field, you can use:\n\n" + " "+tag()+" \n" + " do \n" + " this.value\n\n"; + "To set a variable to the inner html content of an element, you can use:\n\n" + " "+tag()+" \n" + " do \n" + " this.innerHTML"; } QString command() const { if (_next)