Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7685023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:09:40+00:00 2026-05-31T19:09:40+00:00

I have a codeigniter webform, I want to input city/state details from the user,

  • 0

I have a codeigniter webform, I want to input city/state details from the user, such that when user selects State; the city dropdown refreshes to contain names of cities in that State.
I don’t want to write an array of all the US states and cities for the code ignitor form, there must have been a module or any other support for that, in which I select a State and it filters the cities dropdown for it.

What’s the best way to achieve it? I mean do code igniter have builtin library for it? or any support from jquery?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:09:41+00:00Added an answer on May 31, 2026 at 7:09 pm

    If you don’t want to populate the database or write the array for the US States and cities, why don’t you search for the sql dump for it. Here is a link from where you can download the sql dump.

    http://www.farinspace.com/us-cities-and-state-sql-dump/

    Then you can use ajax to load cities when the selection in the dropdown menu is changed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a codeigniter multistie install where I have such code that I can
I have a CodeIgniter MVC application. I have a model called city that has
I have a codeigniter form that contains two checkboxes: <input type=checkbox checked=checked id=box1 name=box1
I have a codeigniter code that is working on local Apache installation. But it
I have switched on the Codeigniter profile (very useful) and I have noticed that
I am using Codeigniter framework and I have a form with input fields. When
I have this function on my controller (Im using CodeIgniter) that reads the database,
I have a CodeIgniter project. I want to use Memcache, but I don't want
I have an Codeigniter app (using version 2.1.0) that is writing a transaction to
I have simple CI (CodeIgniter) code. what I want to do is: when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.