title: Python Dash , get value from Input text
body: <p>I have an input and a button, I need to save the value of the text input when the button is pressed .</p>
  
  <pre><code>dcc.Input(id='username', value='Initial Value', type='text'),
  
  html.Button(id='submit-button', children='Submit'),
  </code></pre>
  
  <p>I am missing something from my callback? </p>
  
  <pre><code>@app.callback(Output('output_div','children' ),
            [Input('submit-button')],
            [State('input-element', 'value')],
            [Event('submit-button', 'click'])
  
   def update_output(input_element):
      print(input_element)
  </code></pre>
  
  <p>Thanks</p>