-1

Can someone please help with a the binding of a text label to an input text box. The purpose is to implement a search box as per this question.

The problem is, is that when you move a Google Control, say to place it at the top of the map, Google appears to take control of the input box and leaves everything else behind. I have tried every possible technique and even this one which I thought might work; but it doesn't.

Basically what I want is for this to bind:

<div>Search Box: <input id="pac-input" class = "search-input"></input></div>

EDIT: Just thinking about it I could just create a label an position it near the <input box> but that could be a little messy and possibly hit and miss.

Community
  • 1
  • 1
  • You need to include the label in the HTML that you place in the control. Bind the autocomplete to the input element. Please provide a [mcve] that exhibits your issue. – geocodezip Oct 14 '16 at 13:09

1 Answers1

0

You need to include the label in the HTML that you place in the control. Bind the autocomplete to the input element.

geocodezip
  • 158,664
  • 13
  • 220
  • 245