By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,474 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,474 IT Pros & Developers. It's quick & easy.

drop down list/menu form submit

P: n/a


I was wondering using only javascript i am trying to figure this out. Lets
say i have a drop down menu with the following items in it\
<form id='frmitems' name='frmitems' method='post' action=''>
<select name='select'>
<option value='A'>Item A</option>
<option value='B'>Item B</option>
<option value='C'>Item C</option>
<option value='D'>Item D</option>
</select>
</form>
What i want to happen is when i select Item C it will submit the form and
Item C will be selected. This is going to be done by using javascript only.
Can somebody shed some light on this.
Thanks everybody in advanced who helped :)

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Oct 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a


<form id='frmitems' name='frmitems' method='post' action='' >
<select name='select' onchange='document.frmitems.submit();'>
<option value='A'>Item A</option>
<option value='B'>Item B</option>
<option value='C'>Item C</option>
<option value='D'>Item D</option>
</select>
</form>
hope this help
documet
kevin wrote:
I was wondering using only javascript i am trying to figure this out. Lets
say i have a drop down menu with the following items in it\
<form id='frmitems' name='frmitems' method='post' action='' >
<select name='select'>
<option value='A'>Item A</option>
<option value='B'>Item B</option>
<option value='C'>Item C</option>
<option value='D'>Item D</option>
</select>
</form>
What i want to happen is when i select Item C it will submit the form and
Item C will be selected. This is going to be done by using javascript only.
Can somebody shed some light on this.
Thanks everybody in advanced who helped :)

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Oct 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.