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

  • Home
  • SEARCH
  • 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 6957781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:03:15+00:00 2026-05-27T15:03:15+00:00

So here is my question, what I am wanting is to allow our sales

  • 0

So here is my question, what I am wanting is to allow our sales guys to add more phone numbers in a customers contact.

We have a a form which looks like this. (note I only showing the part from our contact area)

<form>
<div id="numbers">
<input id="no1" value="" class="phone" type="numbers"/>
</div>
</form>

so basically what I want is away that when they complete one phone number it adds a new input box below it and ask if any more they want to add.

I then need to work out the best way to store them, any suggestions?

My thinking was to join them together as the following

025555555,0311555445,044585522
  • 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-27T15:03:15+00:00Added an answer on May 27, 2026 at 3:03 pm
    1. You need a name on that field or the form won’t submit it with the post. Only inputs with names get submitted. Unless, of course, you’re submitting via AJAX and constructing the post data yourself.
    2. Don’t store the data as comma-separated values. Keep a separate table for phone numbers and use a one-to-many relationship between the person and their phone numbers. Normalized data is (almost) always the right way to go.
    3. Do you really need unlimited phone numbers? Or would some small, fixed number suffice? Say, phone, alternate phone, and cell? If 3 would do, why not just create the three text boxes and make the latter two optional?
    4. You can use something like the following:

    Example:

    $(function() {
         $(document).on('blur','[name="phone"]', function() {
             var $phones = $('[name="phone"]'),
                 empty = $phones.filter( function() { return !$(this).val(); } ).length;
             if (empty == 0) { // don't add a new one unless they all have values
                $phones.filter(':last').after( '<input type="text" name="phone" class="phone" type="numbers" />' );
             }
         });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Newbee question here - I have this method in the view controller m: -(void)
Basic question here - I have many lines of code that look something like:
C# question here.. I have a UTF-8 string that is being interpreted by a
I have a Singleton class here designed to be inherited by classes wanting to
Extreme edit to question to have it make more sense: Let's assume that I
Here is my question: I am wanting to redirect users from one subdomain while
Here my question is not related with coding, I want to know that how
Here is question : Private void buttonFrmshow_Click(..) { frmEmployee f = new frmEmployee() //frmEmployee
Simple question here: I like to know if a constraint in a oracle database
Basic question here. I started using ARC and am not sure if I should

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.