# Change "State" input field to a dropdown style input on order form?

**URL:** <https://integration.keap.com/t/change-state-input-field-to-a-dropdown-style-input-on-order-form/37721>\
**Category:** Max Classic\
**Created:** [April 19, 2018, 5:50pm UTC](https://integration.keap.com/t/change-state-input-field-to-a-dropdown-style-input-on-order-form/37721 "2018-04-19T17:50:52Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Tim\_Parenteau](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Tim\_Parenteau](https://integration.keap.com/u/Tim_Parenteau)\
**Post date:** [April 20, 2018, 5:44pm UTC](https://integration.keap.com/t/change-state-input-field-to-a-dropdown-style-input-on-order-form/37721/5 "2018-04-20T17:44:51Z")

</div>

Thanks for your help John.

I found this java from someone trying to do a similar thing in IS and it looks correct, but for some reason it’s not working. It is from 2013 but should still work. Any clue what is going wrong here?

```
<script>
$(document).ready(function()
{
    $("#state").attr('maxlength','2');
    $("#shipState").attr('maxlength','2');
});
</script>
<script>
$(function() {
var availableTags = [
'AL',
'AK',
'AZ',
'AR',
'CA',
'CO',
'CT',
'DE',
'FL',
'GA',
'HI',
'ID',
'IL',
'IN',
'IA',
'KS',
'KY',
'LA',
'ME',
'MD',
'MA',
'MI',
'MN',
'MS',
'MO',
'MT',
'NE',
'NV',
'NH',
'NJ',
'NM',
'NY',
'NC',
'ND',
'OH',
'OK',
'OR',
'PA',
'RI',
'SC',
'SD',
'TN',
'TX',
'UT',
'VT',
'VA',
'WA',
'WV',
'WI',
'WY',

];
$( '#state' ).autocomplete({
source: availableTags
});
$( '#shipState' ).autocomplete({
source: availableTags
});
});
</script> 

```

I really appreciate the help!

Tim

---

_[View the full topic](https://integration.keap.com/t/change-state-input-field-to-a-dropdown-style-input-on-order-form/37721)._
