Results 1 to 1 of 1

Thread: List/Menu used in conjunction with Textbox

  1. #1
    Join Date
    Jan 2010
    Posts
    3

    Exclamation List/Menu used in conjunction with Textbox

    I am seeking to have a List Menu w/Country Names in that when a country is selected, the appropriate Textboxes appear allowing for the proper protocol per country, thereby causing a greater chance for accuracy. The code will be used for user entry of telephone numbers and postal code information by displaying the precise number of fields and limiting their digits.

    If anyone out there will help, it would be appreciated by myself and probably by others as I have scoured the internet for a solution to no avail as of yet.

    It probably needs some JavaScript. Please Help. Thanks.


    HTML Code:
    Country:
      <select name="Country" class="textfieldRequiredState" id="Country">
        <option selected="selected">Select One</option>
        <option value="U.S.A.">U.S.A.</option>
        <option value="England">England</option>
      </select>
    </p>
    <p>
      <input name="USA Area Code" type="text" id="USA Area Code" maxlength="3" width="35" minlength="3" size="1" />
    -
    <input name="USA Prefix" type="text" id="USA Prefix" minlength="3" maxlength="3" width="35" size="1" />
    -
    <input name="USA Line Number" type="text" id="USA Line Number" minlength="4" maxlength="4" width="35" size="1" /> 
    (U.S.A.: 3-3-4 Digits)
    </p>
    <p>
      <input name="England Area Code" type="text" id="England Area Code" maxlength="4" width="35" size="1" />
    -
    <input name="England 1" type="text" id="England 1" maxlength="3" width="35" size="1" />
    -
    <input name="England 2" type="text" id="England 2" maxlength="3" width="35" size="1" /> 
    (England: Up to 4 then 3-3 Digits)
    </p>
    <p>If option value is &quot;U.S.A.&quot; then display Textfield &quot;USA Area Code&quot;, Textfield &quot;USA Prefix&quot;, Textfield &quot;USA Line Number&quot; at &quot;x&quot; &quot;y&quot; coordinates.
    Last edited by Alan; 13 Jan 2010 at 04:19 PM. Reason: Added HTML code tags

Similar Threads

  1. copy text from textbox to new page?
    By deluxe01 in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 31 Jul 2009, 01:59 PM
  2. Display textbox value in a div
    By jaysnanavati in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 19 Jun 2009, 01:08 PM
  3. Opera :: Textbox cover problem
    By firehydra2k in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 26 Dec 2006, 09:34 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •