title: Submit value through script
body: <p>I have a simple input box</p>
  
  <pre><code>&lt;input type="text" name="name"&gt;
  </code></pre>
  
  <p>The code of button that has submits the value of name is </p>
  
  <pre><code>&lt;script
      src="my_url"
      data-name=" value that user puts should come here "
      data-buttontext="Add Name"&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>I wish that as soon as the user puts the value in input it should get assigned to data-name </p>
  
  <p>Can anyone please tell how it can be done</p>