Jump to content

Ajax populated dropdown list


chapeen

Recommended Posts

Hi everyone,

I have a registration form.

I have 1 dropdown list that contains the country name, when a user selects a country a second

dropdown list gets populated with states/province using jquery, that works fine.

 

When a user wants to modify his account, how do I populate those 2 dropdown list using jquery?

I have a doubts on how to do this.

Link to comment
Share on other sites

Hi,

Why do you want to populate it with jquery (when modifying)?

As you already have the country and province, surely you can populate the province dropdown list in the *normal* way - ie do a direct select from your database using the country id to select the provinces and the provinceid to mark it as selected.

 

Chris

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.