Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 7:31 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  submit form onchange using javascript
PostPosted: February 11th, 2009, 7:51 pm 
User avatar

Posts: 37
Hi there,
I have this little dorpdown menu, and i want to open a window according to the seleccion made, but i want to do it automatically when they select any option from the dropdown menu, without 'submitting' with another button. Can i do this using javascript?
Any help highly appreciated.


Top
 Profile  
 
  Re: submit form onchange using javascript
PostPosted: February 11th, 2009, 8:03 pm 

Posts: 31
function subForm(someForm){
    someForm.submit();
}

<select name="dropDown" onchange="subForm(this.form)">
    <option>a</option>
    <option>b</option>
    <option>c</option>
</select>

This would be for submitting the form onChange of the dropdown. Still you will need to process the info from that menu to select the page to display.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron