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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:25:37+00:00 2026-06-13T10:25:37+00:00

I have a combobox in a form, written in html, like following: <form name=formname

  • 0

I have a combobox in a form, written in html, like following:

<form name="formname" action="formaction.php" method="get">
    <select name="selectname">
        <option>Option1</option>
        <option>Option2</option>
        <option>Option3</option>
    </select>
    <!-- other inputs -->
</form>

Upon submission, an example url would be “formaction.php?selectname=Option1”. I wish for the option value to be passed in the url as “option1”, but I want to avoid having a value attribute for every option, equal to the option’s innerHTML (I’ve considered doing this dynamically via JS as well). Note: I already process values server-side without regard to character case; I want to do this simply for aesthetics.

My goal is to submit all form values in their lowercase representations.

I’ve attempted adding an onsubmit attribute to the form with state = state.toLowerCase(), and similar forms like referring to the value via the document element, retrieved by id.

Is this possible, or must I dynamically set each option’s value attribute to its lowercase form?

  • 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-13T10:25:38+00:00Added an answer on June 13, 2026 at 10:25 am

    There is no native method in javascript that sets all your forms value to lower case.

    You can just as easily process those values on your server side and turn them to lowercase. or you can print them as lowercase in your html and use css to show them as first letter uppercase:

    <select name="selectname">
            <option>option1</option>
            <option>option2</option>
            <option>option3</option>
        </select>
    
    select option {
       text-transform:capitalize;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one combobox on the window form and I have one method which
I have a Form with multiple different controls like ComboBox , TextBox and CheckBox
I would like to have a ComboBox control on a form which will be
I have an Ext.form.ComboBox with the following properties: fieldLabel: 'Regiune', valueField: 'id', displayField: 'reg',
I have a combobox on a web form. The user can select a single
i have a combobox in a form and when i click submit i get
I have .Net 2.0 Windows form containing combobxes. I have written following code to
I have a combobox in a form and a button. I want to add
On a form, I have a combobox, with the RowSource coming from a query
I have a System.Windows.Forms.ComboBox on a form and I want to capture the event

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.