Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,208,142 members, 8,001,689 topics. Date: Wednesday, 13 November 2024 at 02:22 PM |
Nairaland Forum / Science/Technology / Webmasters / State In Nigeria As Drop Down (14897 Views)
Request: Drop-down List Box / Browser Compatible Code: How To Style An Html Select Box To Omit Drop Down Arrow / Help! How Do I Add Drop Down Menu To A Webpage (2) (3) (4)
State In Nigeria As Drop Down by kay4fun(m): 9:18am On Sep 29, 2010 |
Can someone help me with html code for drop down of state in Nigeria. Thanks kay4fun@hotmail.com |
Re: State In Nigeria As Drop Down by DualCore1: 9:21am On Sep 29, 2010 |
<form> <select id="states" name="states"> <option value="lagos">Lagos</option> <option value="abia">Abia</option> </select> </form> Complete the list as desired. Further reading: http://w3schools.com/tags/tag_select.asp 1 Like |
Re: State In Nigeria As Drop Down by kay4fun(m): 9:29am On Sep 29, 2010 |
Thanks. You just done it. May be others that may be intrested. Here is the complete list. For States in Nigeria: [select nigeria-states include_blank "Abuja FCT" "Anambra" "Enugu" "Akwa Ibom" "Adamawa" "Abia" "Bauchi" "Bayelsa" "Benue" "Borno" "Cross River" "Delta" "Ebonyi" "Edo" "Ekiti" "Gombe" "Imo" "Jigawa" "Kaduna" "Kano" "Katsina" "Kebbi" "Kogi" "Kwara" "Lagos" "Nasarawa" "Niger" "Ogun" "Ondo" "Osun" "Oyo" "Plateau" "Rivers" "Sokoto" "Taraba" "Yobe" "Zamfara" "Outside Nigeria"] |
Re: State In Nigeria As Drop Down by DualCore1: 9:44am On Sep 29, 2010 |
^^ This is Ruby on Rails. |
Re: State In Nigeria As Drop Down by samo(m): 7:05am On Aug 06, 2011 |
You can use this. Its arranged in alphabetical order. Just copy and paste. Enjoy ! <select name="states_of_nigeria" id="select"> <option>Outside Nigeria</option> <option>ABUJA FCT</option> <option>ABIA</option> <option>ADAMAWA</option> <option>AKWA IBOM</option> <option>ANAMBRA</option> <option>BAUCHI</option> <option>BAYELSA</option> <option>BENUE</option> <option>BORNO</option> <option>CROSS RIVER</option> <option>DELTA</option> <option>EBONYI</option> <option>EDO</option> <option>EKITI</option> <option>ENUGU</option> <option>GOMBE</option> <option>IMO</option> <option>JIGAWA</option> <option>KADUNA</option> <option>KANO</option> <option>KATSINA</option> <option>KEBBI</option> <option>KOGI</option> <option>KWARA</option> <option>LAGOS</option> <option>NASSARAWA</option> <option>NIGER</option> <option>OGUN</option> <option>ONDO</option> <option>OSUN</option> <option>OYO</option> <option>PLATEAU</option> <option>RIVERS</option> <option>SOKOTO</option> <option>TARABA</option> <option>YOBE</option> <option>ZAMFARA</option> </select> 2 Likes |
Re: State In Nigeria As Drop Down by DualCore1: 9:07am On Aug 06, 2011 |
samo: Thanks. For this to be usable you need to add a value to each option. <option value="abia">ABIA</option> |
Re: State In Nigeria As Drop Down by blacboy: 1:15pm On Dec 02, 2011 |
I think this is a complete version i used for http://www.walaone.com <select name="state" id="state"> <option value="" selected="selected">- Select -</option> <option value="Abuja FCT">Abuja FCT</option> <option value="Abia">Abia</option> <option value="Adamawa">Adamawa</option> <option value="Akwa Ibom">Akwa Ibom</option> <option value="Anambra">Anambra</option> <option value="Bauchi">Bauchi</option> <option value="Bayelsa">Bayelsa</option> <option value="Benue">Benue</option> <option value="Borno">Borno</option> <option value="Cross River">Cross River</option> <option value="Delta">Delta</option> <option value="Ebonyi">Ebonyi</option> <option value="Edo">Edo</option> <option value="Ekiti">Ekiti</option> <option value="Enugu">Enugu</option> <option value="Gombe">Gombe</option> <option value="Imo">Imo</option> <option value="Jigawa">Jigawa</option> <option value="Kaduna">Kaduna</option> <option value="Kano">Kano</option> <option value="Katsina">Katsina</option> <option value="Kebbi">Kebbi</option> <option value="Kogi">Kogi</option> <option value="Kwara">Kwara</option> <option value="Lagos">Lagos</option> <option value="Nassarawa">Nassarawa</option> <option value="Niger">Niger</option> <option value="Ogun">Ogun</option> <option value="Ondo">Ondo</option> <option value="Osun">Osun</option> <option value="Oyo">Oyo</option> <option value="Plateau">Plateau</option> <option value="Rivers">Rivers</option> <option value="Sokoto">Sokoto</option> <option value="Taraba">Taraba</option> <option value="Yobe">Yobe</option> <option value="Zamfara">Zamfara</option> <option value="Outside Nigeria">Outside Nigeria</option> </select> 1 Like |
Re: State In Nigeria As Drop Down by xyluz: 4:23pm On Dec 27, 2016 |
DualCore1: This is probably an old post, but as an option, value attribute is no longer necessary for options in select tag, it automatically takes the value specific between the opening and closing of the option tag... in summary: Before: <select> <option value="text">text</option> </select> Now: <select> <option>text</option> </select> |
Re: State In Nigeria As Drop Down by Nobody: 2:01pm On Jan 27, 2017 |
Thanks |
Re: State In Nigeria As Drop Down by stanogb(m): 12:05pm On Mar 04, 2017 |
For ASP.NET users: <asp:ListItem Value="">- Select State -</asp:ListItem> <asp:ListItem value="Abuja FCT">Abuja FCT</asp:ListItem> <asp:ListItem value="Abia">Abia</asp:ListItem> <asp:ListItem value="Adamawa">Adamawa</asp:ListItem> <asp:ListItem value="Akwa Ibom">Akwa Ibom</asp:ListItem> <asp:ListItem value="Anambra">Anambra</asp:ListItem> <asp:ListItem value="Bauchi">Bauchi</asp:ListItem> <asp:ListItem value="Bayelsa">Bayelsa</asp:ListItem> <asp:ListItem value="Benue">Benue</asp:ListItem> <asp:ListItem value="Borno">Borno</asp:ListItem> <asp:ListItem value="Cross River">Cross River</asp:ListItem> <asp:ListItem value="Delta">Delta</asp:ListItem> <asp:ListItem value="Ebonyi">Ebonyi</asp:ListItem> <asp:ListItem value="Edo">Edo</asp:ListItem> <asp:ListItem value="Ekiti">Ekiti</asp:ListItem> <asp:ListItem value="Enugu">Enugu</asp:ListItem> <asp:ListItem value="Gombe">Gombe</asp:ListItem> <asp:ListItem value="Imo">Imo</asp:ListItem> <asp:ListItem value="Jigawa">Jigawa</asp:ListItem> <asp:ListItem value="Kaduna">Kaduna</asp:ListItem> <asp:ListItem value="Kano">Kano</asp:ListItem> <asp:ListItem value="Katsina">Katsina</asp:ListItem> <asp:ListItem value="Kebbi">Kebbi</asp:ListItem> <asp:ListItem value="Kogi">Kogi</asp:ListItem> <asp:ListItem value="Kwara">Kwara</asp:ListItem> <asp:ListItem value="Lagos">Lagos</asp:ListItem> <asp:ListItem value="Nassarawa">Nassarawa</asp:ListItem> <asp:ListItem value="Niger">Niger</asp:ListItem> <asp:ListItem value="Ogun">Ogun</asp:ListItem> <asp:ListItem value="Ondo">Ondo</asp:ListItem> <asp:ListItem value="Osun">Osun</asp:ListItem> <asp:ListItem value="Oyo">Oyo</asp:ListItem> <asp:ListItem value="Plateau">Plateau</asp:ListItem> <asp:ListItem value="Rivers">Rivers</asp:ListItem> <asp:ListItem value="Sokoto">Sokoto</asp:ListItem> <asp:ListItem value="Taraba">Taraba</asp:ListItem> <asp:ListItem value="Yobe">Yobe</asp:ListItem> <asp:ListItem value="Zamfara">Zamfara</asp:ListItem> <asp:ListItem value="Outside Nigeria">Outside Nigeria</asp:ListItem> 1 Like |
Re: State In Nigeria As Drop Down by idris01(m): 10:13am On Oct 31, 2018 |
That ASP.NET link is ok. Cheers 08026248258 |
Re: State In Nigeria As Drop Down by nnamdiosu(m): 2:06am On Jul 19, 2022 |
samo: 11 years after, this is still helpful. Thanks bro and Gd bless you. amen |
(1) (Reply)
Is Blogging Still Profitable Or Is It Dead? / 10 Powerful Secrets Of Successful Bloggers Exposed! / Chinese Version Of Twitter "Weibo" Has More Traffic Than The Original Twitter So
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 67 |