PyScript Sample Page

Show User Input Value

If you want to get more information, please click this link.

# Selecting JS element for Value / Text Input_Value_Box = Element("InputFieldValueBox") # Needs an argument passed - don't ask me why! def show_input_value(test): # Getting The Value Of The Text input_text = Input_Value_Box.element.value pyscript.write('value',input_text)