Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body onload="BindNames()">
  <input type="text" id="tbNames" />
</body>
</html>
 
.ui-autocomplete { 
    cursor:pointer; 
    height:120px; 
    overflow-y:scroll;
} 
 
function BindNames() {
             var datas=[{"ID":1,"Name":"david"},{"ID":2,"Name":"Paul"}];
           
            $('#tbNames').autocomplete({
                source: datas,
                minLength: 0,
                scroll: true,
                select: function (event, ui) {
                    $("#tbNames").val(ui.item.Name);
                    return false;
                } 
            }).focus(function () {
                $(this).autocomplete("search", "");
            });
        }
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers