now a generic list implemented generically :)

This commit is contained in:
2019-11-16 14:59:23 +01:00
parent d8291a15cf
commit 14eb9d1df7
4 changed files with 15 additions and 8 deletions
+11
View File
@@ -0,0 +1,11 @@
from browser import document
def generic_list_getter():
result = []
for input_el in document.getElementsByClassName("list-adder-input"):
result_candidate = input_el.value
if result_candidate != "":
result.append(result_candidate)
return result