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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:46:34+00:00 2026-05-17T01:46:34+00:00

I have a Select tag in the form in which i am giving the

  • 0

I have a Select tag in the form in which i am giving the Static Options,
My problem is to know “how to retrieve the value which i have selected”,I dont want to use any Button to submit the value which i have selected.So i want to go with the “Onchange event ” of select tag.

here’s the code by which am populating the select tag:

 print qq[<td>Records PerPage</td>];
 print qq[<td><select name="'records'" size="1"><option value="2">2<option value="4"
   selected>4<option value="6">6<option value="10">10</select></td></tr>];

Please do help me Find the solution. Thank You

  • 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-17T01:46:34+00:00Added an answer on May 17, 2026 at 1:46 am

    EDIT: WITH ONCHANGE

    Ok to get your value from a combo box use javascript

       function getCombo1(sel) {
           var value = sel.options[sel.selectedIndex].value;  
       }
       <select id="combo1" onchange="getCombo1(this)">
       <option value="">Select combo</option>
       <option value="Value1">Text1</option>
       <option value="Value2">Text2</option>
       <option value="Value3">Text3</option>
       </select>
    

    Now every time a user selects or changes the value of the combo box, a function named ‘sel’ will be called to update the variable that stores this value.

    Hope this helps you.
    Let me know if it does.

    PK

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

Sidebar

Related Questions

I have a problem with adding OPTIONS to SELECT tag dynamically. Here is my
I have a form which has a select tag; on selection of an item
Hello I have problem that I'm loosing $_POST['id'] value from select tag after clicking
I have a select html tag, and I want the background-color of the option
I have array of select tag. <select id='uniqueID' name=status> <option value=1>Present</option> <option value=2>Absent</option> </select>
I have a easy select tag: <select> <option></option> <option></option> </select> Then I want use
I have a problem making a select tag in php code dynamic. I'm creating
In Google Chrome, I have a select tag with countries which render with lowercase
I have a JSP form which is made of <input type=file/> tag alone for
I have a lightbox/modal that displays a form, but in select tag has a

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.