Skip to content

Instantly share code, notes, and snippets.

@nixoncode
Last active September 12, 2024 04:56
Show Gist options
  • Save nixoncode/ba6ad2e65fbf63529118fce1f8d24a82 to your computer and use it in GitHub Desktop.
Save nixoncode/ba6ad2e65fbf63529118fce1f8d24a82 to your computer and use it in GitHub Desktop.
Kenya counties select drop down menu in html arrange in alphabetical order
<select>
<option value="baringo">Baringo</option>
<option value="bomet">Bomet</option>
<option value="bungoma">Bungoma</option>
<option value="busia">Busia</option>
<option value="elgeyo marakwet">Elgeyo Marakwet</option>
<option value="embu">Embu</option>
<option value="garissa">Garissa</option>
<option value="homa bay">Homa Bay</option>
<option value="isiolo">Isiolo</option>
<option value="kajiado">Kajiado</option>
<option value="kakamega">Kakamega</option>
<option value="kericho">Kericho</option>
<option value="kiambu">Kiambu</option>
<option value="kilifi">Kilifi</option>
<option value="kirinyaga">Kirinyaga</option>
<option value="kisii">Kisii</option>
<option value="kisumu">Kisumu</option>
<option value="kitui">Kitui</option>
<option value="kwale">Kwale</option>
<option value="laikipia">Laikipia</option>
<option value="lamu">Lamu</option>
<option value="machakos">Machakos</option>
<option value="makueni">Makueni</option>
<option value="mandera">Mandera</option>
<option value="meru">Meru</option>
<option value="migori">Migori</option>
<option value="marsabit">Marsabit</option>
<option value="mombasa">Mombasa</option>
<option value="muranga">Muranga</option>
<option value="nairobi">Nairobi</option>
<option value="nakuru">Nakuru</option>
<option value="nandi">Nandi</option>
<option value="narok">Narok</option>
<option value="nyamira">Nyamira</option>
<option value="nyandarua">Nyandarua</option>
<option value="nyeri">Nyeri</option>
<option value="samburu">Samburu</option>
<option value="siaya">Siaya</option>
<option value="taita taveta">Taita Taveta</option>
<option value="tana river">Tana River</option>
<option value="tharaka nithi">Tharaka Nithi</option>
<option value="trans nzoia">Trans Nzoia</option>
<option value="turkana">Turkana</option>
<option value="uasin gishu">Uasin Gishu</option>
<option value="vihiga">Vihiga</option>
<option value="wajir">Wajir</option>
<option value="pokot">West Pokot</option>
</select>
@nixoncode
Copy link
Author

how can i get the sub-counties

look at this link and compile a nested array perhaps for the future generation

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