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

Getting value in Option button

P: 18
Hi,

how can i getting the selected option button value and pass to function.reply soon....
Apr 5 '08 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
It's not clear what the problem is. Post some code including the relevant HTML code.
Apr 5 '08 #2

P: 26
Expand|Select|Wrap|Line Numbers
  1. function getItem(selected)
  2. {
  3.     var item = selected.options[selected.selectedIndex].value;
  4.     alert(item);
  5.  
  6. }
Apr 5 '08 #3

acoder
Expert Mod 15k+
P: 16,027
sethupnr, please enclose your posted code in [code] tags (See How to Ask a Question).

Moderator.
Apr 5 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.