<script type="text/javascript" src="/js/jquery-1.3.2.js"></script> <script type="text/javascript" src="/js/jquery.autocomplete.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("form.enrol-form input#house").autocomplete( '/js-ac/anon/residential-address', { matchSubset:false, matchContains:false, highlight: false, cacheLength:1, autoFill:false } ).result(function(event, address) { $("form.enrol-form input#house").val(address); }); }); </script> <link rel="stylesheet" type="text/css" href="/style/jquery.autocomplete.css">