Solved

Submit Form w/JS Function onChange of option

Posted on 2004-04-21
2
518 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
2 Comments
 
LVL 7

Accepted Solution

by:
cstsang earned 75 total points
Comment Utility
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
Comment Utility
Thanks.  Probably simple - but I had a typo and couldn't get mine to work - thanx again.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
jquery, dropdown 4 34
Problem to Popup 2 48
Get Javascript URL parameters 7 27
angularls and plnkr 14 17
When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now