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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:18:50+00:00 2026-05-24T07:18:50+00:00

I am creating a html form with textboxes. I want default values to be

  • 0

I am creating a html form with textboxes. I want default values to be shown in the textboxes when the page loads.

see code below:

<form action="" onsubmit="">    
  Zip Code: <input id="address" type="textbox" value="">  
  Zip Code:<input id="address" type="textbox" value="78728"/>
  Radius:<input id="radius" type="textbox" value="#session.preferences.view_Radius_Map#"/>miles
  <input type="button" value="Add Radius" onclick= "drawCircle()">
  <input type="button" value="Undo" onclick=" Undo()">
  <input type="button" value="Reset" onclick= "clearMap()">
</form>

for some reason when I try to remove the line that has no value for the Zip Code, the value for the second Zip Code textbox (which has a value set for the zip code) does not display. What is causing this and how can I correct this so that I have to textbox fields Zip Code and Radius in which the default values are displayed when the page loads?

  • 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-24T07:18:51+00:00Added an answer on May 24, 2026 at 7:18 am

    It works fine for me when I remove the first zip code <input>: http://jsfiddle.net/LFYnH/

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

Sidebar

Related Questions

I am creating a chunk of HTML/JavaScript with the below code: $result = mysql_query(SELECT
I'm looking at creating a very simple HTML page that contains an HTML form
I am creating an HTML form with some radio button options. I'd like to
In an HTML form post what are valid characters for creating a multipart boundary?
I am creating a select box for a form using this in _form.html.erb <%=
I am creating a form in HTML that will be printed, with fields that
I'm creating HTML with a loop that has a column for Action. That column
I am creating an HTML contact form that uses a standard image for a
I'm creating an html form that will allow a user to specify a variable-length
I am creating one html login form and sending requests to login.php file. Now

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.