DEV Community


Posted on

googe autofill form again when i add input tag dynamically


when the form has a password type input tag and there is an input tag that can enter text before, google chrome will automatically fill in the form.

like this:

<form onsubmit="addInput(event)"&gt
  <input type="text">
  <input type="password">
  <button type="submit">add input</button>

But i find that google chrome will fill the form…

Discussion (0)