Spring mvc autocomplete textbox
<p>I want to make a autocomplete textbox. I have an Entity Location</p>

<pre><code>@Entity
public class Location {

@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private int lId;
private String lName;

public Location() {
    super();
}

public Location(int lId, String lName) {
    super();
    this.lId = lId;
    this.lName = lName;
}
//getters and setters
</code></pre>

<p>It should be something like this </p>

<p><a href="https://i.stack.imgur.com/qAIVb.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qAIVb.gif" alt="enter image description here"></a></p>

<p>I have no idea how to complete this task. I have tried jQuery Autocomplite, but it wasn't success. Can anyone explaine me, how can i make it works. 
I have already tried <a href="http://www.mkyong.com/spring-mvc/spring-mvc-jquery-autocomplete-example/" rel="nofollow noreferrer">this</a> solution. But it didn't help me. It doesnt work.</p>