1

I have an input on my website which whenever i click in it displays the following

enter image description here

I have the following HTML for the input

        <div id="searchFieldSectionDiv" class="form-group">
            <div class="btn-group" style="width: 100%">
                <label class="sr-only" for="searchField">Filter results</label>
                <div class="input-group">
                    <!-- TODO: Need to filter products section as the user types -->
                    <input id="searchField" class="form-control" placeholder="Type to search..." autocomplete="off">
                    <span id="searchclear" class="glyphicon glyphicon-remove-circle"></span>
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <i class="fas fa-search" style="margin-right: 0px"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>

I have tried adding type="search but it still displays the address box.

Not to sure on how to hide it, all other browsers seem fine, just Chrome.

Ideally i want to add this at top level so i dont have to keep adding this to every input but again not too sure which level to add it too (body maybe?)

murday1983
  • 3,124
  • 10
  • 44
  • 85

1 Answers1

1

You have to change autocomplete="off" to autocomplete="disabled"

Chrome stopped supporting autocomplete="off" that's why it isn't working but it doesn't understand if you use autocomplete="disabled" that's why this works for now

xmaster
  • 1,041
  • 5
  • 18