Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Submit Form w/JS Function onChange of option

Posted on 2004-04-21
2
Medium Priority
?
539 Views
Last Modified: 2008-03-10
I have a form that has a drop down selection.  Upon change of value in the drop down - I need to know how to submit the form automatically using a JavaScript function; I presume that this is what I would need to do.  If someone has a way to do this please help.
0
Comment
Question by:kbsitz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
cstsang earned 300 total points
ID: 10884824
try this one:
<form name="form1">
<select onchange="go()">
.........
</select>
</form>

<script language=javascript>
  function go()
    {
      document.form1.submit();
     }
</script>
0
 

Author Comment

by:kbsitz
ID: 10890788
Thanks.  Probably simple - but I had a typo and couldn't get mine to work - thanx again.
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question