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 8664475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:14:55+00:00 2026-06-12T17:14:55+00:00

I need to create some dynamic functionality and am unsure of where to begin.

  • 0

I need to create some dynamic functionality and am unsure of where to begin. I have a page where you can create a Contact, we have an auto suggest field for “Company Name”, this populates with all the companies you’ve created from within the application.

You then have the option to fill out the address for the Contact your creating, we want a checkbox that reads, “Same as company”, so when checked, it’ll populate all the fields with that companies address information.

I know how to do the final piece in jQuery, however, how do I dynamically pull the value from the auto suggest field and look it up in the database to pull the address data?

Do I need to setup a variable that is equal to the value in this field? (company_name).
Then do

SELECT * from companies where company_name = company_name

Do I already have access to the data I need or do I need to do more work?

  • 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-06-12T17:14:56+00:00Added an answer on June 12, 2026 at 5:14 pm

    It depends on how you are doing the auto suggest. If you use the jQuery UI Autocomplete control (http://jqueryui.com/autocomplete/), it supports returning complex data from the server. So your server would return the company name AND address. You can then use code to handle the select (ie, when the user picks a company) and copy that address info into JavaScript variables. When the user clicks the checkbox, you would then just copy it.

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

Sidebar

Related Questions

I need to create some dynamic menus in a VS2010 SDI application I'm writing.
I need to create some simple effects for the layers which I have created
i have a problem with my mvc3 application, i need to create some Validation
I have some data and need to create a json file with this structure
I have created a dynamic(.so) library which bundles some functionality for a storage backend
I need to create an algorithm to layout some hierarchical data but have never
I need to create a Custom view in android which will have dynamic text
I have an c# Class Library where I need some dynamic template based text.
I need to create some JSpinner controls where I can detect the button presses,
I have a page where I need to dynamically create an iframe and stick

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.