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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:48:11+00:00 2026-05-26T13:48:11+00:00

I am working with the following HTML form: <form method = ‘POST’ action =

  • 0

I am working with the following HTML form:

<form method = 'POST' action = '/python/stats/'>
<select name = 'team'>
<option value = 'team1'> team1 </option>
<option value = 'team2'> team2 </option>
<option value = 'team3'> team3 </option>
</select>
<select name = 'player'>
<option value = 'player1'> player1 </option>
<option value = 'player2'> player2 </option>
<option value = 'player3'> player3 </option>
</select>
<input type = 'submit' value = "Update">
</form>

The action /python/stats requires 2 parameters. How can I edit this form (to javascript?) so that the action is called each time either of the selects is changed?

  • 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-26T13:48:12+00:00Added an answer on May 26, 2026 at 1:48 pm

    the action property in the form tag specifies the location to submit the form to. To do this with an onchange event is, you can do a form submit in the event.

    <head>
    <script type='text/javascript'>
    function doSubmit(){
        document.forms["form1"].submit();
    }
    </script>
    </head>
    
    
    <form id='form1' method = 'POST' action = '/python/stats/'>
    <select name = 'team' onchange='doSubmit();'>
    <option value = 'team1'> team1 </option>
    <option value = 'team2'> team2 </option>
    <option value = 'team3'> team3 </option>
    </select>
    <select name = 'player' onchange='doSubmit();'>
    <option value = 'player1'> player1 </option>
    <option value = 'player2'> player2 </option>
    <option value = 'player3'> player3 </option>
    </select>
    <input type = 'submit' value = "Update">
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following HTML: <form name=smform id=smform method=post action=> <input type=checkbox name=Check_All onClick=Check(document.smform.check)
I have the following html form <form action=/newPost id=submit_new method=get><div class=iwill> <div class=iwill-holder> <div
I have the following form: <form action= method=get> <input name=form1 type=radio onclick=document.forms[0].testbox.value='0.00'; /> <input
I'm using the following HTML code to autoselect some text in a form field
I am using following code to display HTML Form on my web page. This
I have the following form in my /app/views/password_resets/new.html.erb view <% form_tag password_resets_path do %>
So, I'm following this article to customise the Html.EditorForModel template. Had it working -
The following code creates a form based on a model, Post . Problem I
I'm working on a web form which works in a following way. Read email
I'm currently uploading a single file successfully with the following form: <html> <body> <form

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.