Advertisement
Guest User

Untitled

a guest
Jan 24th, 2011
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function () {
  2.     var cities;
  3.  
  4.     $.ajax({
  5.         type: "POST",
  6.         url: "WebService.asmx/GetCities",
  7.         success: function (data) {
  8.             cities = data.text.split(';');
  9.  
  10.         }
  11.     });
  12.  
  13.     $('#location').autocomplete(cities, {
  14.         autoFill: true,
  15.         selectFirst: true,
  16.         width: '240px'
  17.     });
  18.  
  19.  
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement