I haven't set the form input default value, however I eveytime access the page, the form input text has default value. This situation happens in Google chrome, After I set autocomplete="off" in the input and form element. Firefox is ok now but Chrome is still displaying a default value.
This is my html code:
<form id="add-host-form" class="form-inline">
<div class="form-group">
<label for="ip-addr">IP</label>
<input class="form-control" type="text" id="ip-addr">
</div>
<div class="form-group">
<label for="passwd">Passwd</label>
<input class="form-control" type="password" id="passwd">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
Every time I access the page, I got: I don't know where is the default value come and how to disable it?