Skip to content

Instantly share code, notes, and snippets.

@pusherman
Created July 19, 2012 18:13
Show Gist options
  • Save pusherman/3145761 to your computer and use it in GitHub Desktop.
Save pusherman/3145761 to your computer and use it in GitHub Desktop.
HTML - Select list of US states
<select name="state" id="state">
<option value="" selected="selected">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
@B1-0S
Copy link

B1-0S commented May 21, 2018

Thanks bro!

@HRarsha
Copy link

HRarsha commented Aug 9, 2018

Thank you, bro!

Copy link

ghost commented Aug 16, 2018

Merci beaucoup

@ng-model
Copy link

thanks a ton

@jonathanlal
Copy link

#timesaver

@fusion27
Copy link

Thank you for sharing!

@starcoleptic
Copy link

Amazing, thank you!!

@Yahkal
Copy link

Yahkal commented May 7, 2019

It helped thanks

@fatihtoprak
Copy link

Thank you , any html for selected state's cities ?

@rafawashere
Copy link

Thank you so much

@russellr922
Copy link

Gracias.

@sfarrisUA
Copy link

Thanks! You are a scholar and a gentleman.

@RondellAllard
Copy link

Thanks a million!

@jayscodeanddesign
Copy link

You are the man!

@thenicoleduncan
Copy link

u r the best!!!!

@spialelo
Copy link

spialelo commented Nov 2, 2020

Thank you so much for this!

@lelisloisBen
Copy link

Thank you !!!

@godnhiggy
Copy link

what is your cashapp handle?

@TLJessop
Copy link

Thank you very much, saved me so much typing

@Siverianhusky558
Copy link

Siverianhusky558 commented Apr 26, 2021

It really helped me! Instead of typing all of this I just found it! Thank you so much for making my life easier. (I'm pretty sure that's an exaggeration!)

@MichaelYabko
Copy link

Thanks!

@speedDaemonAmber
Copy link

time saver...ty!!!!

@stetsonharding
Copy link

Exactly what I was looking for. Much appreciated!

@Saurabh1Barasiya
Copy link

thanks

@LeslyStarkman
Copy link

thanks!

@cmdecker95
Copy link

Thank you!

@jawadsheikhhnhtechsolutions

Thank you! very helpfull

@dkosoko23
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment