Your Ad Here

Posted By

theroamingcoder on 09/03/10


Tagged

states jquery us ui autocomplete 50


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jearley
timpreneur


jquery ui autocomplete us states


 / Published in: jQuery
 

  1. var regions = [
  2. {value: 'AL',label: 'Alabama'},
  3. {value: 'AK',label: 'Alaska'},
  4. {value: 'AZ',label: 'Arizona'},
  5. {value: 'AR',label: 'Arkansas'},
  6. {value: 'CA',label: 'California'},
  7. {value: 'CO',label: 'Colorado'},
  8. {value: 'CT',label: 'Connecticut'},
  9. {value: 'DE',label: 'Delaware'},
  10. {value: 'FL',label: 'Florida'},
  11. {value: 'GA',label: 'Georgia'},
  12. {value: 'HI',label: 'Hawaii'},
  13. {value: 'ID',label: 'Idaho'},
  14. {value: 'IL',label: 'Illinois'},
  15. {value: 'IN',label: 'Indiana'},
  16. {value: 'IA',label: 'Iowa'},
  17. {value: 'KS',label: 'Kansas'},
  18. {value: 'KY',label: 'Kentucky'},
  19. {value: 'LA',label: 'Louisiana'},
  20. {value: 'ME',label: 'Maine'},
  21. {value: 'MD',label: 'Maryland'},
  22. {value: 'MA',label: 'Massachusetts'},
  23. {value: 'MI',label: 'Michigan'},
  24. {value: 'MN',label: 'Minnesota'},
  25. {value: 'MS',label: 'Mississippi'},
  26. {value: 'MO',label: 'Missouri'},
  27. {value: 'MT',label: 'Montana'},
  28. {value: 'NE',label: 'Nebraska'},
  29. {value: 'NV',label: 'Nevada'},
  30. {value: 'NH',label: 'New Hampshire'},
  31. {value: 'NJ',label: 'New Jersey'},
  32. {value: 'NM',label: 'New Mexico'},
  33. {value: 'NY',label: 'New York'},
  34. {value: 'NC',label: 'North Carolina'},
  35. {value: 'ND',label: 'North Dakota'},
  36. {value: 'OH',label: 'Ohio'},
  37. {value: 'OK',label: 'Oklahoma'},
  38. {value: 'OR',label: 'Oregon'},
  39. {value: 'PA',label: 'Pennsylvania'},
  40. {value: 'RI',label: 'Rhode Island'},
  41. {value: 'SC',label: 'South Carolina'},
  42. {value: 'SD',label: 'South Dakota'},
  43. {value: 'TN',label: 'Tennessee'},
  44. {value: 'TX',label: 'Texas'},
  45. {value: 'UT',label: 'Utah'},
  46. {value: 'VT',label: 'Vermont'},
  47. {value: 'VA',label: 'Virginia'},
  48. {value: 'WA',label: 'Washington'},
  49. {value: 'WV',label: 'West Virginia'},
  50. {value: 'WI',label: 'Wisconsin'},
  51. {value: 'WY',label: 'Wyoming'},
  52. {value: 'AS',label: 'American Samoa'},
  53. {value: 'DC',label: 'District of Columbia'},
  54. {value: 'FM',label: 'Federated States of Micronesia'},
  55. {value: 'GU',label: 'Guam'},
  56. {value: 'MH',label: 'Marshall Islands'},
  57. {value: 'MP',label: 'Northern Mariana Islands'},
  58. {value: 'PW',label: 'Palau'},
  59. {value: 'PR',label: 'Puerto Rico'},
  60. {value: 'VI',label: 'Virgin Islands'}
  61. ];
  62. $("#location_region").autocomplete({
  63. source: regions
  64. });

Report this snippet  

You need to login to post a comment.